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

Referenced components in "items" not generated? #79

Closed
exoego opened this issue Nov 8, 2022 · 0 comments · Fixed by #80
Closed

Referenced components in "items" not generated? #79

exoego opened this issue Nov 8, 2022 · 0 comments · Fixed by #80
Assignees

Comments

@exoego
Copy link
Owner

exoego commented Nov 8, 2022

paths:
  "/foo/{id}":
    get:
      responses:
        '200':
          description: get Foo
          content:
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Foo"
      ...
components:
  schemas:
    Foo:
      type: object
      properties:
        id:
          type: string
        nested:
          type: object
          properties:
           bars:
              type: array
              items:
                "$ref": "#/components/schemas/Bar"

If we have something like the above, the missing component Bar should be generated, but it is not.
https://github.com/k0kubun/rspec-openapi#can-i-use-rspec-openapi-with-ref-to-minimize-duplication-of-schema

@exoego exoego self-assigned this Nov 8, 2022
@exoego exoego changed the title Components Sub components in "items" not generated? Nov 8, 2022
@exoego exoego changed the title Sub components in "items" not generated? Referenced components in "items" not generated? Nov 8, 2022
@exoego exoego closed this as completed in #80 Nov 8, 2022
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 a pull request may close this issue.

1 participant