Skip to content

Arrays containing object items #2

@pearmaster

Description

@pearmaster

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions