Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Properly deserialize ref requestBodies in v2 #932

Copy link
Copy link
@millicentachieng

Description

@millicentachieng
Issue body actions

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'
Reactions are currently unavailable

Metadata

Metadata

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.