modify to return the collection of entity type for the GET entity operation

This commit is contained in:
Sam Xu 2018-01-19 09:55:43 -08:00
parent e3e5f5d465
commit 6b965f5af2
5 changed files with 11 additions and 11 deletions

View file

@ -135,7 +135,7 @@ namespace Microsoft.OpenApi.OData.Generator
{
Schema = new OpenApiSchema
{
Title = "Collection of " + entitySet.Name,
Title = "Collection of " + entitySet.EntityType().Name,
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>
{

View file

@ -95,7 +95,7 @@
"content": {
"application/json": {
"schema": {
"title": "Collection of People",
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {

View file

@ -63,7 +63,7 @@ paths:
content:
application/json:
schema:
title: Collection of People
title: Collection of Person
type: object
properties:
value:

View file

@ -122,7 +122,7 @@
"content": {
"application/json": {
"schema": {
"title": "Collection of People",
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {
@ -566,7 +566,7 @@
"content": {
"application/json": {
"schema": {
"title": "Collection of Airlines",
"title": "Collection of Airline",
"type": "object",
"properties": {
"value": {
@ -836,7 +836,7 @@
"content": {
"application/json": {
"schema": {
"title": "Collection of Airports",
"title": "Collection of Airport",
"type": "object",
"properties": {
"value": {
@ -1135,7 +1135,7 @@
"content": {
"application/json": {
"schema": {
"title": "Collection of NewComePeople",
"title": "Collection of Person",
"type": "object",
"properties": {
"value": {

View file

@ -90,7 +90,7 @@ paths:
content:
application/json:
schema:
title: Collection of People
title: Collection of Person
type: object
properties:
value:
@ -373,7 +373,7 @@ paths:
content:
application/json:
schema:
title: Collection of Airlines
title: Collection of Airline
type: object
properties:
value:
@ -545,7 +545,7 @@ paths:
content:
application/json:
schema:
title: Collection of Airports
title: Collection of Airport
type: object
properties:
value:
@ -746,7 +746,7 @@ paths:
content:
application/json:
schema:
title: Collection of NewComePeople
title: Collection of Person
type: object
properties:
value: