Skip to content

Support for nullable references? #917

@jsoldi

Description

@jsoldi

Hi I'm using @readme/openapi-parser to parse openapi spec. AFAIK this is a valid schema property:

supervisor:
  $ref: '#/components/schemas/Employee'
  nullable: true

Also, when I parse it and inspect the reference, I see that it has a nullable: true property. But its type is ReferenceObject, which is defined like

export interface ReferenceObject {
  $ref: string;
}

Shouldn't ReferenceObject contain a nullable?: boolean property?

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