Fix issue #36: Response object needs type property to identify collections

This commit is contained in:
Sam Xu 2019-08-13 13:00:12 -07:00
parent 2ff03dd401
commit f362c34e31
18 changed files with 1001364 additions and 4934 deletions

View file

@ -589,7 +589,7 @@
"Airports"
],
"summary": "Invoke functionImport GetNearestAirport",
"operationId": "OperationImport.GetNearestAirport.6896b1324a4eff76ad9867a0",
"operationId": "OperationImport.GetNearestAirport.fc9c4516cf76a7e9b89d87b1",
"parameters": [
{
"name": "lat",
@ -667,7 +667,7 @@
"People"
],
"summary": "Invoke functionImport GetPersonWithMostFriends",
"operationId": "OperationImport.GetPersonWithMostFriends.de8b4a5ab51ba6c8c254fe80",
"operationId": "OperationImport.GetPersonWithMostFriends.14b2097dbee53f4fb8fb308d",
"responses": {
"200": {
"description": "Success",
@ -983,7 +983,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
}
}
}
@ -1086,7 +1095,7 @@
"Me.Functions"
],
"summary": "Invoke function GetFavoriteAirline",
"operationId": "Me.GetFavoriteAirline.5766",
"operationId": "Me.GetFavoriteAirline.cf64",
"responses": {
"200": {
"description": "Success",
@ -1116,7 +1125,7 @@
"Me.Functions"
],
"summary": "Invoke function GetFriendsTrips",
"operationId": "Me.GetFriendsTrips.9e3a",
"operationId": "Me.GetFriendsTrips.16f3",
"parameters": [
{
"name": "userName",
@ -1199,7 +1208,7 @@
"Me.Functions"
],
"summary": "Invoke function UpdatePersonLastName",
"operationId": "Me.UpdatePersonLastName.08a5",
"operationId": "Me.UpdatePersonLastName.01a4",
"parameters": [
{
"name": "lastName",
@ -1331,7 +1340,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
"title": "Collection of Trip",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
}
}
}
@ -1430,7 +1448,7 @@
"Me.Functions"
],
"summary": "Invoke function GetInvolvedPeople",
"operationId": "Me.Trips.GetInvolvedPeople.6610",
"operationId": "Me.Trips.GetInvolvedPeople.0bed",
"parameters": [
{
"name": "TripId",
@ -2032,7 +2050,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
}
}
}
@ -2145,7 +2172,7 @@
"NewComePeople.Functions"
],
"summary": "Invoke function GetFavoriteAirline",
"operationId": "NewComePeople.GetFavoriteAirline.5766",
"operationId": "NewComePeople.GetFavoriteAirline.cf64",
"parameters": [
{
"name": "UserName",
@ -2187,7 +2214,7 @@
"NewComePeople.Functions"
],
"summary": "Invoke function GetFriendsTrips",
"operationId": "NewComePeople.GetFriendsTrips.9e3a",
"operationId": "NewComePeople.GetFriendsTrips.16f3",
"parameters": [
{
"name": "UserName",
@ -2292,7 +2319,7 @@
"NewComePeople.Functions"
],
"summary": "Invoke function UpdatePersonLastName",
"operationId": "NewComePeople.UpdatePersonLastName.08a5",
"operationId": "NewComePeople.UpdatePersonLastName.01a4",
"parameters": [
{
"name": "UserName",
@ -2444,7 +2471,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
"title": "Collection of Trip",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
}
}
}
@ -2553,7 +2589,7 @@
"NewComePeople.Functions"
],
"summary": "Invoke function GetInvolvedPeople",
"operationId": "NewComePeople.Trips.GetInvolvedPeople.6610",
"operationId": "NewComePeople.Trips.GetInvolvedPeople.0bed",
"parameters": [
{
"name": "UserName",
@ -3165,7 +3201,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
}
}
}
@ -3278,7 +3323,7 @@
"People.Functions"
],
"summary": "Invoke function GetFavoriteAirline",
"operationId": "People.GetFavoriteAirline.5766",
"operationId": "People.GetFavoriteAirline.cf64",
"parameters": [
{
"name": "UserName",
@ -3320,7 +3365,7 @@
"People.Functions"
],
"summary": "Invoke function GetFriendsTrips",
"operationId": "People.GetFriendsTrips.9e3a",
"operationId": "People.GetFriendsTrips.16f3",
"parameters": [
{
"name": "UserName",
@ -3425,7 +3470,7 @@
"People.Functions"
],
"summary": "Invoke function UpdatePersonLastName",
"operationId": "People.UpdatePersonLastName.08a5",
"operationId": "People.UpdatePersonLastName.01a4",
"parameters": [
{
"name": "UserName",
@ -3577,7 +3622,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
"title": "Collection of Trip",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
}
}
}
@ -3686,7 +3740,7 @@
"People.Functions"
],
"summary": "Invoke function GetInvolvedPeople",
"operationId": "People.Trips.GetInvolvedPeople.6610",
"operationId": "People.Trips.GetInvolvedPeople.0bed",
"parameters": [
{
"name": "UserName",

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -534,7 +534,7 @@
"Airports"
],
"summary": "Invoke functionImport GetNearestAirport",
"operationId": "OperationImport.GetNearestAirport.6896b1324a4eff76ad9867a0",
"operationId": "OperationImport.GetNearestAirport.fc9c4516cf76a7e9b89d87b1",
"produces": [
"application/json"
],
@ -570,7 +570,7 @@
"People"
],
"summary": "Invoke functionImport GetPersonWithMostFriends",
"operationId": "OperationImport.GetPersonWithMostFriends.de8b4a5ab51ba6c8c254fe80",
"operationId": "OperationImport.GetPersonWithMostFriends.14b2097dbee53f4fb8fb308d",
"produces": [
"application/json"
],
@ -852,7 +852,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
}
},
"default": {
@ -942,7 +951,7 @@
"Me.Functions"
],
"summary": "Invoke function GetFavoriteAirline",
"operationId": "Me.GetFavoriteAirline.5766",
"operationId": "Me.GetFavoriteAirline.cf64",
"produces": [
"application/json"
],
@ -964,7 +973,7 @@
"Me.Functions"
],
"summary": "Invoke function GetFriendsTrips",
"operationId": "Me.GetFriendsTrips.9e3a",
"operationId": "Me.GetFriendsTrips.16f3",
"produces": [
"application/json"
],
@ -1040,7 +1049,7 @@
"Me.Functions"
],
"summary": "Invoke function UpdatePersonLastName",
"operationId": "Me.UpdatePersonLastName.08a5",
"operationId": "Me.UpdatePersonLastName.01a4",
"produces": [
"application/json"
],
@ -1158,7 +1167,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
"title": "Collection of Trip",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
}
},
"default": {
@ -1244,7 +1262,7 @@
"Me.Functions"
],
"summary": "Invoke function GetInvolvedPeople",
"operationId": "Me.Trips.GetInvolvedPeople.6610",
"operationId": "Me.Trips.GetInvolvedPeople.0bed",
"produces": [
"application/json"
],
@ -1765,7 +1783,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
}
},
"default": {
@ -1863,7 +1890,7 @@
"NewComePeople.Functions"
],
"summary": "Invoke function GetFavoriteAirline",
"operationId": "NewComePeople.GetFavoriteAirline.5766",
"operationId": "NewComePeople.GetFavoriteAirline.cf64",
"produces": [
"application/json"
],
@ -1895,7 +1922,7 @@
"NewComePeople.Functions"
],
"summary": "Invoke function GetFriendsTrips",
"operationId": "NewComePeople.GetFriendsTrips.9e3a",
"operationId": "NewComePeople.GetFriendsTrips.16f3",
"produces": [
"application/json"
],
@ -1987,7 +2014,7 @@
"NewComePeople.Functions"
],
"summary": "Invoke function UpdatePersonLastName",
"operationId": "NewComePeople.UpdatePersonLastName.08a5",
"operationId": "NewComePeople.UpdatePersonLastName.01a4",
"produces": [
"application/json"
],
@ -2121,7 +2148,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
"title": "Collection of Trip",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
}
},
"default": {
@ -2215,7 +2251,7 @@
"NewComePeople.Functions"
],
"summary": "Invoke function GetInvolvedPeople",
"operationId": "NewComePeople.Trips.GetInvolvedPeople.6610",
"operationId": "NewComePeople.Trips.GetInvolvedPeople.0bed",
"produces": [
"application/json"
],
@ -2744,7 +2780,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
}
},
"default": {
@ -2842,7 +2887,7 @@
"People.Functions"
],
"summary": "Invoke function GetFavoriteAirline",
"operationId": "People.GetFavoriteAirline.5766",
"operationId": "People.GetFavoriteAirline.cf64",
"produces": [
"application/json"
],
@ -2874,7 +2919,7 @@
"People.Functions"
],
"summary": "Invoke function GetFriendsTrips",
"operationId": "People.GetFriendsTrips.9e3a",
"operationId": "People.GetFriendsTrips.16f3",
"produces": [
"application/json"
],
@ -2966,7 +3011,7 @@
"People.Functions"
],
"summary": "Invoke function UpdatePersonLastName",
"operationId": "People.UpdatePersonLastName.08a5",
"operationId": "People.UpdatePersonLastName.01a4",
"produces": [
"application/json"
],
@ -3100,7 +3145,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
"title": "Collection of Trip",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
}
},
"default": {
@ -3194,7 +3248,7 @@
"People.Functions"
],
"summary": "Invoke function GetInvolvedPeople",
"operationId": "People.Trips.GetInvolvedPeople.6610",
"operationId": "People.Trips.GetInvolvedPeople.0bed",
"produces": [
"application/json"
],

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -45,33 +45,82 @@ namespace Microsoft.OpenApi.OData.Operation
/// <inheritdoc/>
protected override void SetResponses(OpenApiOperation operation)
{
operation.Responses = new OpenApiResponses
if (!LastSegmentIsKeySegment && NavigationProperty.TargetMultiplicity() == EdmMultiplicity.Many)
{
operation.Responses = new OpenApiResponses
{
Constants.StatusCode200,
new OpenApiResponse
{
Description = "Retrieved navigation property",
Content = new Dictionary<string, OpenApiMediaType>
Constants.StatusCode200,
new OpenApiResponse
{
Description = "Retrieved navigation property",
Content = new Dictionary<string, OpenApiMediaType>
{
Constants.ApplicationJsonMediaType,
new OpenApiMediaType
{
Schema = new OpenApiSchema
Constants.ApplicationJsonMediaType,
new OpenApiMediaType
{
Reference = new OpenApiReference
Schema = new OpenApiSchema
{
Type = ReferenceType.Schema,
Id = NavigationProperty.ToEntityType().FullName()
Title = "Collection of " + NavigationProperty.ToEntityType().Name,
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>
{
{
"value",
new OpenApiSchema
{
Type = "array",
Items = new OpenApiSchema
{
Reference = new OpenApiReference
{
Type = ReferenceType.Schema,
Id = NavigationProperty.ToEntityType().FullName()
}
}
}
}
}
}
}
}
}
}
}
}
};
};
}
else
{
operation.Responses = new OpenApiResponses
{
{
Constants.StatusCode200,
new OpenApiResponse
{
Description = "Retrieved navigation property",
Content = new Dictionary<string, OpenApiMediaType>
{
{
Constants.ApplicationJsonMediaType,
new OpenApiMediaType
{
Schema = new OpenApiSchema
{
Reference = new OpenApiReference
{
Type = ReferenceType.Schema,
Id = NavigationProperty.ToEntityType().FullName()
}
}
}
}
}
}
}
};
}
operation.Responses.Add(Constants.StatusCodeDefault, Constants.StatusCodeDefault.GetResponse());
base.SetResponses(operation);

View file

@ -756,7 +756,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Siterra.Documents.App.DTO.RevisionDto"
"title": "Collection of RevisionDto",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Siterra.Documents.App.DTO.RevisionDto"
}
}
}
}
},
"default": {
@ -1284,7 +1293,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Siterra.Documents.App.DTO.DocumentDto"
"title": "Collection of DocumentDto",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Siterra.Documents.App.DTO.DocumentDto"
}
}
}
}
},
"default": {
@ -2287,7 +2305,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Siterra.Documents.App.DTO.RevisionDto"
"title": "Collection of RevisionDto",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Siterra.Documents.App.DTO.RevisionDto"
}
}
}
}
},
"default": {

View file

@ -541,7 +541,13 @@ paths:
'200':
description: Retrieved navigation property
schema:
$ref: '#/definitions/Siterra.Documents.App.DTO.RevisionDto'
title: Collection of RevisionDto
type: object
properties:
value:
type: array
items:
$ref: '#/definitions/Siterra.Documents.App.DTO.RevisionDto'
default:
$ref: '#/responses/error'
x-ms-docs-operation-type: operation
@ -928,7 +934,13 @@ paths:
'200':
description: Retrieved navigation property
schema:
$ref: '#/definitions/Siterra.Documents.App.DTO.DocumentDto'
title: Collection of DocumentDto
type: object
properties:
value:
type: array
items:
$ref: '#/definitions/Siterra.Documents.App.DTO.DocumentDto'
default:
$ref: '#/responses/error'
x-ms-docs-operation-type: operation
@ -1673,7 +1685,13 @@ paths:
'200':
description: Retrieved navigation property
schema:
$ref: '#/definitions/Siterra.Documents.App.DTO.RevisionDto'
title: Collection of RevisionDto
type: object
properties:
value:
type: array
items:
$ref: '#/definitions/Siterra.Documents.App.DTO.RevisionDto'
default:
$ref: '#/responses/error'
x-ms-docs-operation-type: operation

View file

@ -835,7 +835,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Siterra.Documents.App.DTO.RevisionDto"
"title": "Collection of RevisionDto",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Siterra.Documents.App.DTO.RevisionDto"
}
}
}
}
}
}
@ -1426,7 +1435,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto"
"title": "Collection of DocumentDto",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Siterra.Documents.App.DTO.DocumentDto"
}
}
}
}
}
}
@ -2541,7 +2559,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Siterra.Documents.App.DTO.RevisionDto"
"title": "Collection of RevisionDto",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Siterra.Documents.App.DTO.RevisionDto"
}
}
}
}
}
}

View file

@ -588,7 +588,13 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Siterra.Documents.App.DTO.RevisionDto'
title: Collection of RevisionDto
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/Siterra.Documents.App.DTO.RevisionDto'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
@ -1014,7 +1020,13 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto'
title: Collection of DocumentDto
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/Siterra.Documents.App.DTO.DocumentDto'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
@ -1827,7 +1839,13 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Siterra.Documents.App.DTO.RevisionDto'
title: Collection of RevisionDto
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/Siterra.Documents.App.DTO.RevisionDto'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation

View file

@ -857,7 +857,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
}
},
"default": {
@ -1219,7 +1228,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
"title": "Collection of Trip",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
}
},
"default": {
@ -1828,7 +1846,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
}
},
"default": {
@ -2248,7 +2275,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
"title": "Collection of Trip",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
}
},
"default": {
@ -2873,7 +2909,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
}
},
"default": {
@ -3293,7 +3338,16 @@
"200": {
"description": "Retrieved navigation property",
"schema": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
"title": "Collection of Trip",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
}
},
"default": {

View file

@ -590,7 +590,13 @@ paths:
'200':
description: Retrieved navigation property
schema:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
title: Collection of Person
type: object
properties:
value:
type: array
items:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/responses/error'
x-ms-docs-operation-type: operation
@ -840,7 +846,13 @@ paths:
'200':
description: Retrieved navigation property
schema:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
title: Collection of Trip
type: object
properties:
value:
type: array
items:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/responses/error'
x-ms-docs-operation-type: operation
@ -1279,7 +1291,13 @@ paths:
'200':
description: Retrieved navigation property
schema:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
title: Collection of Person
type: object
properties:
value:
type: array
items:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/responses/error'
x-ms-docs-operation-type: operation
@ -1572,7 +1590,13 @@ paths:
'200':
description: Retrieved navigation property
schema:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
title: Collection of Trip
type: object
properties:
value:
type: array
items:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/responses/error'
x-ms-docs-operation-type: operation
@ -2023,7 +2047,13 @@ paths:
'200':
description: Retrieved navigation property
schema:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
title: Collection of Person
type: object
properties:
value:
type: array
items:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/responses/error'
x-ms-docs-operation-type: operation
@ -2316,7 +2346,13 @@ paths:
'200':
description: Retrieved navigation property
schema:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
title: Collection of Trip
type: object
properties:
value:
type: array
items:
$ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/responses/error'
x-ms-docs-operation-type: operation

View file

@ -983,7 +983,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
}
}
}
@ -1386,7 +1395,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
"title": "Collection of Trip",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
}
}
}
@ -2087,7 +2105,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
}
}
}
@ -2566,7 +2593,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
"title": "Collection of Trip",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
}
}
}
@ -3287,7 +3323,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person"
}
}
}
}
}
}
@ -3766,7 +3811,16 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
"title": "Collection of Trip",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip"
}
}
}
}
}
}

View file

@ -659,7 +659,13 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
title: Collection of Person
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
@ -929,7 +935,13 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
title: Collection of Trip
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
@ -1424,7 +1436,13 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
title: Collection of Person
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
@ -1746,7 +1764,13 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
title: Collection of Trip
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
@ -2255,7 +2279,13 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
title: Collection of Person
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
@ -2577,7 +2607,13 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
title: Collection of Trip
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Trip'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation

View file

@ -6,7 +6,7 @@
<VersionMajor Condition="'$(VersionMajor)' == ''">1</VersionMajor>
<VersionMinor Condition="'$(VersionMinor)' == ''">0</VersionMinor>
<VersionBuild Condition="'$(VersionBuild)' == ''">0</VersionBuild>
<VersionRelease Condition="'$(VersionRelease)' == ''">beta8</VersionRelease>
<VersionRelease Condition="'$(VersionRelease)' == ''">beta9</VersionRelease>
</PropertyGroup>
<!-- For NuGet Package Dependencies -->