Development
API-Response-Contract-Validator
Validiert eine echte API-Antwort gegen das in OpenAPI 3.x deklarierte Response-Schema
html· HTML-ErgebnisWerkzeug öffnen
Schnellstart
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
cURL
curl -X POST 'https://api.elysiatools.com/de/api/tools/api-response-contract-validator' \
-H 'Content-Type: application/json' \
-d '{"openApiSpec":"openapi: 3.0.3\npaths:\n /users/{id}:\n get:\n responses:\n \"200\":\n description: ok\n content:\n application/json:\n schema:\n type: object\n required: [id, name]\n properties:\n id: { type: integer }\n name: { type: string }\n active: { type: boolean }","responseJson":"{\"id\":\"1\",\"active\":\"yes\"}","path":"/users/42","method":"get","statusCode":"200","specFormat":"yaml","disallowAdditionalProperties":true}'