Development
Валидатор контракта API-ответа
Проверяет реальный JSON-ответ API на соответствие response schema из OpenAPI 3.x
html· HTML-результатОткрыть инструмент
Быстрый старт
Вызовите этот инструмент из своего кода на трёх языках.
cURL
curl -X POST 'https://api.elysiatools.com/ru/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}'