67 lines
1.4 KiB
JSON
67 lines
1.4 KiB
JSON
|
|
{
|
|||
|
|
"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"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|