diff --git a/schema-registry/schema-registry.json b/schema-registry/schema-registry.json index 7558f03..e051cf9 100644 --- a/schema-registry/schema-registry.json +++ b/schema-registry/schema-registry.json @@ -459,15 +459,7 @@ "200": { "description": "OK", "schema": { - "type": "object", - "properties": { - "schemaType": { - "type": "string" - }, - "schema": { - "type": "string" - } - } + "$ref": "#/definitions/schema_def" } }, "404": { @@ -837,7 +829,7 @@ "name": "schema_def", "in": "body", "schema": { - "$ref": "#/definitions/schema_def" + "$ref": "#/definitions/stored_schema" } } ], @@ -1559,7 +1551,10 @@ "type": "object", "properties": { "compatibilityLevel": { - "type": "string" + "type": "string", + "description": "Compatibility level", + "example": "FULL_TRANSITIVE", + "enum": ["BACKWARD", "BACKWARD_TRANSITIVE", "FORWARD", "FORWARD_TRANSITIVE", "FULL", "FULL_TRANSITIVE", "NONE"] } } }, @@ -1567,7 +1562,10 @@ "type": "object", "properties": { "compatibility": { - "type": "string" + "type": "string", + "description": "Compatibility level", + "example": "FULL_TRANSITIVE", + "enum": ["BACKWARD", "BACKWARD_TRANSITIVE", "FORWARD", "FORWARD_TRANSITIVE", "FULL", "FULL_TRANSITIVE", "NONE"] } } },