Skip to content

$ref with type: null not properly converted #23

@mattoni

Description

@mattoni

Thanks for your work on this project!

I've got a rather complex spec I recently updated to 3.1.0, but need 3.0.3 for some tooling still. I have many places where in order to support a $ref that can be null in 3.1.0, I do this:

image

However, it is not properly converted (even with --allOf), but instead preserved:

image

I'd expect to see something like

stack:
  type: object
  nullable: true
  allOf:
    - $ref: ...

Is this something that can be resolved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions