Repository navigation
Closed
Labels
priority:p2Medium. Generally has a work-around and a smaller sub-set of customers is affected. SLA <=30 daysMedium. Generally has a work-around and a smaller sub-set of customers is affected. SLA <=30 daystype:bugA broken experienceA broken experience
Milestone
Description
Below is what the current serialization yields:
# omitted
paths:
'/Documents({Id})/Revisions/$ref'
post:
tags:
- Documents.RevisionDto
summary: Create new navigation property ref to Revisions for Documents
operationId: Documents.CreateRefRevisions
consumes: [ ]
parameters:
- in: path
name: Id
description: 'key: Id of DocumentDto'
required: true
type: integer
format: int32
maximum: 2147483647
minimum: -2147483648
x-ms-docs-key-type: DocumentDto
- in: body
name: body
schema: { }
responses:
'204':
description: Success
default:
$ref: '#/responses/error'
x-ms-docs-operation-type: operation
definitions:
ReferenceCreate:
type: object
properties:
'@odata.id':
type: string
additionalProperties:
type: object
Expected result:
# omitted
paths:
'/Documents({Id})/Revisions/$ref'
post:
tags:
- Documents.RevisionDto
summary: Create new navigation property ref to Revisions for Documents
operationId: Documents.CreateRefRevisions
consumes:
- application/json
parameters:
- in: path
name: Id
description: 'key: Id of DocumentDto'
required: true
type: integer
format: int32
maximum: 2147483647
minimum: -2147483648
x-ms-docs-key-type: DocumentDto
- $ref: '#/parameters/refPostBody'
responses:
'204':
description: Success
default:
$ref: '#/responses/error'
x-ms-docs-operation-type: operation
parameters:
refPostBody:
in: body
name: body
description: New navigation property ref value
required: true
schema:
$ref: '#/definitions/ReferenceCreate'
Metadata
Metadata
Assignees
Labels
priority:p2Medium. Generally has a work-around and a smaller sub-set of customers is affected. SLA <=30 daysMedium. Generally has a work-around and a smaller sub-set of customers is affected. SLA <=30 daystype:bugA broken experienceA broken experience
Activity
[-]Properly handle ref requestBodies[/-][+]Properly deserialize ref requestBodies in v2[/+]darrelmiller commentedon Jul 6, 2022
requestBodies is not a valid property of a OpenAPI 2.0 document https://spec.openapis.org/oas/v2.0.html#fixed-fields
The expected result as shown above is not correct.
The problem with the original document is the most likely related to the empty consumes array. This is a bug that I fixed yesterday #926
millicentachieng commentedon Jul 6, 2022
Darrel (@darrelmiller), thank you for pointing that out. I'll be testing with your changes and then report back.
darrelmiller commentedon Jul 15, 2022
Millicent Achieng (@millicentachieng) Can we close this?
millicentachieng commentedon Jul 18, 2022
millicentachieng commentedon Oct 6, 2022
Related #1033