The getSchema service retrieves the complete schema definition including type,
content, and references for a given schema ID, with optional subject parameter for subject-specific
schema lookup.
Input Parameters
| id(Integer, required) |
The unique identifier of the schema to retrieve. |
| subject(String, optional) |
The subject name to filter the schema retrieval. |
|
$connectionName(String, required)
|
Name of the Kafka connection configured with the
Confluent Schema Registry. |
Output Parameters
| schema (Record, required) |
The schema information containing: |
| |
type (String, required) |
The schema type (e.g., AVRO, JSON, PROTOBUF). |
| |
id (Integer, required) |
The unique schema identifier. |
| |
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. |