Simple schema registry demo that uses Confluent Cloud schema registry.
Set these variables before executing the commands below.
export ENV=your_confluent_env
export CID=your_confluent_cluster_id
export TOKEN=your_security_token
export SECRET=your_security_secret
export SR=http://you-sr
ccloud login
ccloud environment use $ENV
ccloud schema-registry subject list
ccloud schema-registry schema describe --subject users-value --version latestccloud kafka topic create --cluster $CID transactions-avro
ccloud kafka topic create --cluster $CID transactions-protoccloud schema-registry schema create \
--subject transactions-value \
--schema avro/src/main/resources/avro/io/confluent/examples/clients/basicavro/Payment.avsc \
--type AVRO
ccloud schema-registry schema create \
--subject transactions-proto-value \
--schema person.proto \
--type PROTOBUF# Fails
ccloud schema-registry schema create --subject transactions-value --schema Payment2a.avsc --type AVRO
# Succeeds
ccloud schema-registry schema create --subject transactions-value --schema Payment2b.avsc --type AVRO
# Diff using vscode
code --diff avro/src/main/resources/avro/io/confluent/examples/clients/basicavro/Payment2a.avsc avro/src/main/resources/avro/io/confluent/examples/clients/basicavro/Payment2b.avsccurl --user $TOKEN:$SECRET $SR/subjects