Uploading a schema to a subject
Written by
Updated at October 22, 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 / Namespace. - 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.
- Optionally, add a connection description and a label.
- Compatibility check level: Specify if you want to override the level specified for the namespace.
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 schema format to Avro
, JSON Schema , or Protobuf 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 reference purposes, and the registered subject's schema version. - Select Normalization to apply data schema normalization
. - If you want to skip schema compatibility checking, enable the relevant option.
- Click Upload schema.