Test compatibility of a schema for the subject and version.

POST /compatibility/subjects/{subject}/versions/{version}

Path parameters

  • subject string Required
  • version integer Required

Query parameters

  • verbose boolean

    If true, includes more verbose information about the compatibility check, for example the reason the check failed.

Body

  • schema string
  • schemaType string
  • references array[object]
    Hide references attributes Show references attributes object
    • name string
    • subject string
    • version integer

Body

  • schema string
  • schemaType string
  • references array[object]
    Hide references attributes Show references attributes object
    • name string
    • subject string
    • version integer

Body

  • schema string
  • schemaType string
  • references array[object]
    Hide references attributes Show references attributes object
    • name string
    • subject string
    • version integer

Responses

POST /compatibility/subjects/{subject}/versions/{version}
curl \
 --request POST 'http://localhost:8081/compatibility/subjects/{subject}/versions/{version}' \
 --header "Content-Type: application/vnd.schemaregistry.v1+json"
curl \
 --request POST 'http://localhost:8081/compatibility/subjects/{subject}/versions/{version}' \
 --header "Content-Type: application/vnd.schemaregistry+json"
curl \
 --request POST 'http://localhost:8081/compatibility/subjects/{subject}/versions/{version}' \
 --header "Content-Type: application/json" \
 --data '{"schema":"string","schemaType":"string","references":[{"name":"string","subject":"string","version":42}]}'
Request examples
{
  "schema": "string",
  "schemaType": "string",
  "references": [
    {
      "name": "string",
      "subject": "string",
      "version": 42
    }
  ]
}
Request examples
{
  "schema": "string",
  "schemaType": "string",
  "references": [
    {
      "name": "string",
      "subject": "string",
      "version": 42
    }
  ]
}
Request examples
{
  "schema": "string",
  "schemaType": "string",
  "references": [
    {
      "name": "string",
      "subject": "string",
      "version": 42
    }
  ]
}
Response examples (200)
{
  "is_compatible": true,
  "messages": [
    "string"
  ]
}
Response examples (200)
{
  "is_compatible": true,
  "messages": [
    "string"
  ]
}
Response examples (200)
{
  "is_compatible": true,
  "messages": [
    "string"
  ]
}
Response examples (409)
{
  "error_code": 42,
  "message": "string"
}
Response examples (409)
{
  "error_code": 42,
  "message": "string"
}
Response examples (409)
{
  "error_code": 42,
  "message": "string"
}
Response examples (422)
{
  "error_code": 42,
  "message": "string"
}
Response examples (422)
{
  "error_code": 42,
  "message": "string"
}
Response examples (422)
{
  "error_code": 42,
  "message": "string"
}
Response examples (500)
{
  "error_code": 42,
  "message": "string"
}
Response examples (500)
{
  "error_code": 42,
  "message": "string"
}
Response examples (500)
{
  "error_code": 42,
  "message": "string"
}