generate_schema

lsst.alert.packet.generate_schema(apdb_filepath, schema_path, schema_version)

Generate avro schemas using an apdb.yaml file.

Using a provided path to the apdb.yaml file and schema folder, generate a new schema, using a provided version number.

Parameters:
apdb_filepath: `string`

Input path to the apdb.yaml file which contains the information used to generate the new schemas. Example: path/to/sdm_schemas/yml/apdb.yaml

schema_path: `string`

Input path to the schema folder where the new schemas will be added. Example: /path/to/alert_packet/python/lsst/alert/packet/schema

schema_version: ‘string’

Provide the version number of the schema as a string. Example: “5.1”