Skip to content

OAS3: Resolved YAML doesn't include Example components from domains #1335

@gracekarina

Description

@gracekarina

OAS3: Resolved YAML doesn't include Example components from domains

Spec to reproduce:

openapi.yaml

openapi: 3.0.2
info:
  title: Example references
  version: 1.0.0
paths:
  /foo:
    get:
      responses:
        '200':
          $ref: './domain.yaml#/components/responses/200ok'

domain.yaml

components:
  responses:
    200ok:
      description: ok
      content:
        application/json:
          schema:
            type: string
          examples:
            ex1:
              $ref: '#/components/examples/ex1'

  examples:
    ex1:
      value: hello

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions