Uploading a schema to a new subject
Written by
Updated at December 20, 2024
Note
This feature is in the Preview stage.
Management console
- In the management console
, select the folder where you want to upload a schema to a subject. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Schema Registry. - Select the namespace you want to upload a schema for.
- In the left-hand panel, select
Schemas. - Click Upload schema.
- Select the method for schema uploading into the new subject and specify the following parameters:
- Name: Unique subject name.
- (Optional) Add a description for the subject.
- Compatibility check level: Specify if you want to override the level specified for the namespace. You can override the level only for the current subject.
BACKWARD
: (Default) Consumers using the new schema can read data written by producers using the latest registered schema.BACKWARD_TRANSITIVE
: Consumers using the new schema can read data written by producers using all previously registered schemas.FORWARD
: Consumers using the latest registered schema can read data written by producers using the new schema.FORWARD_TRANSITIVE
: Consumers using all previously registered schemas can read data written by producers using the new schema.FULL
: New schema is forward and backward compatible with the latest registered schema.FULL_TRANSITIVE
: New schema is forward and backward compatible with all previously registered schemas.NONE
: Schema compatibility checks are disabled.
For more information about schema compatibility types, see the Confluent documentation .
- Set the data format to Protobuf
, Avro , or JSON Schema and attach the file. - If a schema references another schema, in the References section, click
and enter the reference name, the subject name the schema is registered under for linking, and the subject version containing the referenced schema. - To apply data schema normalization
, enable the Normalization setting. - If you want to skip schema compatibility checking, enable the relevant option.
- Click Upload schema.