OpenAPI.NET.OData/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.json
Vincent Biret 892003ef2a
- updates integration test files
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
2021-11-23 11:49:28 -05:00

136 lines
2.9 KiB
JSON

{
"openapi": "3.0.1",
"info": {
"title": "OData Service for namespace ",
"description": "This OData service is located at http://localhost",
"version": "1.0.1"
},
"servers": [
{
"url": "http://localhost"
}
],
"paths": { },
"components": {
"schemas": {
"odata.error": {
"required": [
"error"
],
"type": "object",
"properties": {
"error": {
"$ref": "#/components/schemas/odata.error.main"
}
}
},
"odata.error.main": {
"required": [
"code",
"message"
],
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"target": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/components/schemas/odata.error.detail"
}
},
"innererror": {
"type": "object",
"description": "The structure of this object is service-specific"
}
}
},
"odata.error.detail": {
"required": [
"code",
"message"
],
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"target": {
"type": "string"
}
}
},
"ODataCountResponse": {
"type": "integer",
"format": "int32"
}
},
"responses": {
"error": {
"description": "error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/odata.error"
}
}
}
}
},
"parameters": {
"top": {
"name": "$top",
"in": "query",
"description": "Show only the first n items",
"schema": {
"minimum": 0,
"type": "integer"
},
"example": 50
},
"skip": {
"name": "$skip",
"in": "query",
"description": "Skip the first n items",
"schema": {
"minimum": 0,
"type": "integer"
}
},
"count": {
"name": "$count",
"in": "query",
"description": "Include count of items",
"schema": {
"type": "boolean"
}
},
"filter": {
"name": "$filter",
"in": "query",
"description": "Filter items by property values",
"schema": {
"type": "string"
}
},
"search": {
"name": "$search",
"in": "query",
"description": "Search items by search phrases",
"schema": {
"type": "string"
}
}
}
}
}