Skip to content

Support nullable properties with references #634

@aelij

Description

@aelij

Currently if we set nullable: true a property with a reference, the nullable attribute is not emitted. For example:

schema:
  $ref: '#/definitions/Foo'
  nullable: true # not emitted

This can be useful when the nullability is per-property and not per-definition. So the reference schema can only be emitted once, and used both in nullable and non-nullable properties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions