diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.json index 614be48e..d9be7bed 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.json @@ -7082,6 +7082,21 @@ ], "type": "string" } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } } ], "responses": { @@ -7630,6 +7645,19 @@ ], "type": "string" } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "PlanItems" + ], + "type": "string" + } } ], "responses": { @@ -11102,6 +11130,21 @@ ], "type": "string" } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } } ], "responses": { @@ -12042,6 +12085,21 @@ ], "type": "string" } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } } ], "responses": { @@ -15441,6 +15499,19 @@ ], "type": "string" } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "PlanItems" + ], + "type": "string" + } } ], "responses": { @@ -16042,6 +16113,21 @@ ], "type": "string" } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } } ], "responses": { @@ -23441,6 +23527,21 @@ ], "type": "string" } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } } ], "responses": { @@ -24063,6 +24164,19 @@ ], "type": "string" } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "PlanItems" + ], + "type": "string" + } } ], "responses": { @@ -28079,6 +28193,21 @@ ], "type": "string" } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } } ], "responses": { @@ -29139,6 +29268,21 @@ ], "type": "string" } + }, + { + "in": "query", + "name": "$expand", + "description": "Expand related entities", + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } } ], "responses": { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.yaml index aaac5390..095fb453 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.yaml @@ -4925,6 +4925,17 @@ paths: - Features - Features desc type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success @@ -5310,6 +5321,15 @@ paths: - EndsAt - EndsAt desc type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + - PlanItems + type: string responses: '200': $ref: '#/responses/GetFriendsTripsResponse' @@ -7742,6 +7762,17 @@ paths: - Features - Features desc type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success @@ -8414,6 +8445,17 @@ paths: - Features - Features desc type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success @@ -10781,6 +10823,15 @@ paths: - EndsAt - EndsAt desc type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + - PlanItems + type: string responses: '200': $ref: '#/responses/GetFriendsTripsResponse' @@ -11209,6 +11260,17 @@ paths: - Features - Features desc type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success @@ -16432,6 +16494,17 @@ paths: - Features - Features desc type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success @@ -16872,6 +16945,15 @@ paths: - EndsAt - EndsAt desc type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + - PlanItems + type: string responses: '200': $ref: '#/responses/GetFriendsTripsResponse' @@ -19709,6 +19791,17 @@ paths: - Features - Features desc type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success @@ -20471,6 +20564,17 @@ paths: - Features - Features desc type: string + - in: query + name: $expand + description: Expand related entities + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json index 635ce3f4..2270b453 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json @@ -7761,6 +7761,26 @@ "type": "string" } } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { @@ -8373,6 +8393,24 @@ "type": "string" } } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "PlanItems" + ], + "type": "string" + } + } } ], "responses": { @@ -12183,6 +12221,26 @@ "type": "string" } } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { @@ -13223,6 +13281,26 @@ "type": "string" } } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { @@ -17073,6 +17151,24 @@ "type": "string" } } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "PlanItems" + ], + "type": "string" + } + } } ], "responses": { @@ -17753,6 +17849,26 @@ "type": "string" } } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { @@ -26010,6 +26126,26 @@ "type": "string" } } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { @@ -26714,6 +26850,24 @@ "type": "string" } } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "PlanItems" + ], + "type": "string" + } + } } ], "responses": { @@ -31230,6 +31384,26 @@ "type": "string" } } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { @@ -32424,6 +32598,26 @@ "type": "string" } } + }, + { + "name": "$expand", + "in": "query", + "description": "Expand related entities", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "enum": [ + "*", + "Friends", + "BestFriend", + "Trips" + ], + "type": "string" + } + } } ], "responses": { diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml index 2f1e6be2..898d710a 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml @@ -5385,6 +5385,21 @@ paths: - Features - Features desc type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success @@ -5813,6 +5828,19 @@ paths: - EndsAt - EndsAt desc type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - PlanItems + type: string responses: '200': $ref: '#/components/responses/GetFriendsTripsResponse' @@ -8479,6 +8507,21 @@ paths: - Features - Features desc type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success @@ -9219,6 +9262,21 @@ paths: - Features - Features desc type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success @@ -11879,6 +11937,19 @@ paths: - EndsAt - EndsAt desc type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - PlanItems + type: string responses: '200': $ref: '#/components/responses/GetFriendsTripsResponse' @@ -12356,6 +12427,21 @@ paths: - Features - Features desc type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success @@ -18129,6 +18215,21 @@ paths: - Features - Features desc type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success @@ -18621,6 +18722,19 @@ paths: - EndsAt - EndsAt desc type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - PlanItems + type: string responses: '200': $ref: '#/components/responses/GetFriendsTripsResponse' @@ -21774,6 +21888,21 @@ paths: - Features - Features desc type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success @@ -22621,6 +22750,21 @@ paths: - Features - Features desc type: string + - name: $expand + in: query + description: Expand related entities + style: form + explode: false + schema: + uniqueItems: true + type: array + items: + enum: + - '*' + - Friends + - BestFriend + - Trips + type: string responses: '200': description: Success