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

Bug: component schemas cannot be in random order #7

Closed
KoharaKazuya opened this issue Jan 15, 2021 · 1 comment · Fixed by #8
Closed

Bug: component schemas cannot be in random order #7

KoharaKazuya opened this issue Jan 15, 2021 · 1 comment · Fixed by #8
Assignees
Labels
Type: Bug Something isn't working

Comments

@KoharaKazuya
Copy link

Steps To Reproduce

The following is a valid OpenAPI document. In openapi-typescript-code-generator, however, build error occurs.
(demo in the playground)

openapi: 3.0.3
info:
  title: demo
  version: 1.0.0
paths: {}

components:
  schemas:
    Consumer:
      type: object
      properties:
        provider:
          $ref: '#/components/schemas/Provider'
    Provider:
      type: integer

The current behavior

Build error occurs.

The expected behavior

We don't need to care order.

Himenon added a commit that referenced this issue Jan 15, 2021
Himenon added a commit that referenced this issue Jan 15, 2021
@Himenon
Copy link
Owner

Himenon commented Jan 15, 2021

@KoharaKazuya
Thank you! This fix is ​​over.

@Himenon Himenon self-assigned this Jan 16, 2021
@Himenon Himenon added the Type: Bug Something isn't working label Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants