Skip to content

Commit 86c6e63

Browse files
Fix additional failing tests
1 parent d118380 commit 86c6e63

File tree

1 file changed

+19
-42
lines changed

1 file changed

+19
-42
lines changed

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.yaml

Lines changed: 19 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -668,10 +668,7 @@ paths:
668668
- Documents.RevisionDto
669669
summary: Create new navigation property ref to Revisions for Documents
670670
operationId: Documents.CreateRefRevisions
671-
consumes:
672-
- application/json
673-
produces:
674-
- application/json
671+
consumes: [ ]
675672
parameters:
676673
- in: path
677674
name: Id
@@ -684,17 +681,10 @@ paths:
684681
x-ms-docs-key-type: DocumentDto
685682
- in: body
686683
name: body
687-
description: New navigation property ref value
688-
required: true
689-
schema:
690-
type: object
691-
additionalProperties:
692-
type: object
684+
schema: { }
693685
responses:
694-
'201':
695-
description: Created navigation property link.
696-
schema:
697-
type: object
686+
'204':
687+
description: Success
698688
default:
699689
$ref: '#/responses/error'
700690
x-ms-docs-operation-type: operation
@@ -1428,10 +1418,7 @@ paths:
14281418
- Libraries.DocumentDto
14291419
summary: Create new navigation property ref to Documents for Libraries
14301420
operationId: Libraries.CreateRefDocuments
1431-
consumes:
1432-
- application/json
1433-
produces:
1434-
- application/json
1421+
consumes: [ ]
14351422
parameters:
14361423
- in: path
14371424
name: Id
@@ -1444,17 +1431,10 @@ paths:
14441431
x-ms-docs-key-type: LibraryDto
14451432
- in: body
14461433
name: body
1447-
description: New navigation property ref value
1448-
required: true
1449-
schema:
1450-
type: object
1451-
additionalProperties:
1452-
type: object
1434+
schema: { }
14531435
responses:
1454-
'201':
1455-
description: Created navigation property link.
1456-
schema:
1457-
type: object
1436+
'204':
1437+
description: Success
14581438
default:
14591439
$ref: '#/responses/error'
14601440
x-ms-docs-operation-type: operation
@@ -2660,10 +2640,7 @@ paths:
26602640
- Tasks.RevisionDto
26612641
summary: Create new navigation property ref to Revisions for Tasks
26622642
operationId: Tasks.CreateRefRevisions
2663-
consumes:
2664-
- application/json
2665-
produces:
2666-
- application/json
2643+
consumes: [ ]
26672644
parameters:
26682645
- in: path
26692646
name: Id
@@ -2676,17 +2653,10 @@ paths:
26762653
x-ms-docs-key-type: DocumentDto
26772654
- in: body
26782655
name: body
2679-
description: New navigation property ref value
2680-
required: true
2681-
schema:
2682-
type: object
2683-
additionalProperties:
2684-
type: object
2656+
schema: { }
26852657
responses:
2686-
'201':
2687-
description: Created navigation property link.
2688-
schema:
2689-
type: object
2658+
'204':
2659+
description: Success
26902660
default:
26912661
$ref: '#/responses/error'
26922662
x-ms-docs-operation-type: operation
@@ -4294,6 +4264,13 @@ definitions:
42944264
type: string
42954265
'@odata.type':
42964266
type: string
4267+
refBody:
4268+
type: object
4269+
properties:
4270+
'@odata.id':
4271+
type: string
4272+
additionalProperties:
4273+
type: object
42974274
parameters:
42984275
top:
42994276
in: query

0 commit comments

Comments
 (0)