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

Arrays containing object items #2

Open
pearmaster opened this issue Jan 10, 2020 · 0 comments
Open

Arrays containing object items #2

pearmaster opened this issue Jan 10, 2020 · 0 comments

Comments

@pearmaster
Copy link
Owner

pearmaster commented Jan 10, 2020

If an array schema directly contains an object schema as its items, then it won't always codegen.

This doesn't work:

type: array
items:
  type: object
  properties:
    foo:
      type: integer
  required: [foo]

This does work:

type: array
items:
  $ref: "../theObjectSchema"
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