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

Missing content type when serializing Responses that are references in v2 #1000

Copy link
Copy link
@millicentachieng

Description

@millicentachieng
Issue body actions

Describe the bug
We need to specify the content type of response if the Response is a reference. This bug only happens during v2 serialization

Expected behavior

'/Tasks({Id})/Default.Upload':
    post:
      tags:
        - Tasks.Actions
      summary: Invoke action Upload
      operationId: Tasks.DocumentDto.Upload
+      produces:
+        - 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
      responses:
        '200':
          $ref: '#/responses/UploadResponse'
        default:
          $ref: '#/responses/error'
      x-ms-docs-operation-type: action
    x-description: Provides operations to call the Upload method.
Reactions are currently unavailable

Metadata

Metadata

Labels

type: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.