getSchemaMetadata

The getSchemaMetadata service fetches comprehensive metadata for a schema including ID, version, type, content, and references for a specified subject and version (or latest if version is not provided).

Input Parameters

subject (String, required) The name of the subject whose schema metadata you want to retrieve.
version (Integer, optional) The version number of the schema. If not specified, retrieves the latest version.
$connectionName (String, required) Name of the Kafka connection configured with the Confluent Schema Registry.

Output Parameters

metadata (Record, required) The schema metadata containing:
  type (String, required) The schema type (e.g., AVRO, JSON, PROTOBUF).
  id (Integer, required) The unique schema identifier.
  version (Integer, required) The schema version number.
  content (String, required) The schema definition/content.
  references (Record list, optional) Array of schema references, each containing:
name (String, required) The reference name.
subject (String, required) The subject of the referenced schema.
version (Integer, required) The version of the referenced schema.
message (String, required) The response message returned after the service execution.