Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs in responses don't seem to work #104

Open
mgm1313 opened this issue Sep 23, 2024 · 0 comments
Open

Refs in responses don't seem to work #104

mgm1313 opened this issue Sep 23, 2024 · 0 comments

Comments

@mgm1313
Copy link

mgm1313 commented Sep 23, 2024

paths:
  /healthz:
    get:
      operationId: healthCheck
      tags:
        - system
      summary: Health check endpoint
      description: Check if the API is up and running
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: "OK"
        "500":
          $ref: "./responses.yaml#/$defs/InternalServerError"

responses.yaml

$schema: https://json-schema.org/draft/2020-12/schema

$defs:
  InternalServerError:
    description: Internal Server Error

This syntax causes the issue described in #100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant