Тесты: часть 1
This commit is contained in:
67
tests/fixtures/edge-cases.json
vendored
Normal file
67
tests/fixtures/edge-cases.json
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"openapi": "3.0.0",
|
||||
"info": {
|
||||
"title": "Edge Cases API",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"url": "https://api.example.com"
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
"/test-unicode-метод": {
|
||||
"get": {
|
||||
"operationId": "TestController_unicodeМетод",
|
||||
"summary": "Тест с Unicode символами",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/test/special-chars/@{id}": {
|
||||
"get": {
|
||||
"operationId": "TestController_specialChars",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/test/very-long-endpoint-name-that-exceeds-normal-length-and-tests-edge-case": {
|
||||
"get": {
|
||||
"operationId": "TestController_veryLongEndpointNameThatExceedsNormalLengthAndTestsEdgeCase",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"components": {
|
||||
"schemas": {
|
||||
"ВажныйТип": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"название": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user