Rest Proxy Definitions: SchemaRequest

Description

Used as input for the Avro Schema Request service

Field name Type Description

keySchema

string

(optional) The Avro Schema used as key to resolve to a Schema Registry ID (Escaped JSON)

valueSchema

string

(optional) The Avro Schema used as key to resolve to a Schema Registry ID (Escaped JSON)

Examples

Key and value
{
  "keySchema": "{\"type\":\"record\",\"name\":\"Random\",\"namespace\":\"io.axual.examples.general\",\"doc\":\"Object type that is supposed to be filled with a Random value. This should be used when the Key is irrelevant.\",\"fields\":[{\"name\":\"random\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The random value.\"}]}",
  "valueSchema": "{\"type\":\"record\",\"name\":\"Random\",\"namespace\":\"io.axual.examples.general\",\"doc\":\"Object type that is supposed to be filled with a Random value. This should be used when the Key is irrelevant.\",\"fields\":[{\"name\":\"random\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The random value.\"}]}"
}
Key only
{
  "keySchema": "{\"type\":\"record\",\"name\":\"Random\",\"namespace\":\"io.axual.examples.general\",\"doc\":\"Object type that is supposed to be filled with a Random value. This should be used when the Key is irrelevant.\",\"fields\":[{\"name\":\"random\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The random value.\"}]}"
}
Value only
{
  "valueSchema": "{\"type\":\"record\",\"name\":\"Random\",\"namespace\":\"io.axual.examples.general\",\"doc\":\"Object type that is supposed to be filled with a Random value. This should be used when the Key is irrelevant.\",\"fields\":[{\"name\":\"random\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The random value.\"}]}"
}