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

fix: external ref in schema definition #1894

Merged
merged 4 commits into from
Feb 4, 2022

Conversation

AlexVarchuk
Copy link
Collaborator

@AlexVarchuk AlexVarchuk commented Feb 3, 2022

What/Why/How?

fixes: #1862

Reference

Testing

openapi.yaml

openapi: 3.1.0
info:
  title: Try to reproduce
  version: 1.0.0
servers:
  - url: example.com
tags:
  - name: test
    x-displayName: The test Model
    description: |
      <SchemaDefinition schemaRef="#/components/schemas/test" />

paths:
  /newPath:
    post:
      requestBody:
        content: 
          application/json:
            schema:
              $ref: "#/components/schemas/test"
      responses:
        200:
          description: 'all ok'

components:
  schemas:
    test:
      $ref: ./test.yml#/Test

test.yaml

Test:
  type: object
  properties:
    test:
      type: string

Screenshots (optional)

Screenshot 2022-02-03 at 13 22 46

Check yourself

  • Code is linted
  • Tested
  • All new/updated code is covered with tests

@AlexVarchuk AlexVarchuk force-pushed the fix/external-ref-in-schema-definition branch from e34a1dc to 80e39a2 Compare February 3, 2022 11:15
@AlexVarchuk AlexVarchuk self-assigned this Feb 4, 2022
@AlexVarchuk AlexVarchuk merged commit 57cdd9f into master Feb 4, 2022
@AlexVarchuk AlexVarchuk deleted the fix/external-ref-in-schema-definition branch February 4, 2022 13:21
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

Successfully merging this pull request may close these issues.

openapi 3.1 components schemas ref issue
3 participants