Skip to content

possibly null property not allowed by ibm-schema-type-format on OpenAPI 3.1 #748

@kornysietsma

Description

@kornysietsma

I'm trying to define a possibly null property, as far as I can tell in OpenAPI 3.1 the syntax should be:

  myData:
    type: object
    properties:
        fooBar:
          anyOf:
            - $ref: '#/components/schemas/foos'
            - type: 'null'

This clashes with ibm-schema-type-format which returns an error:

Message : Invalid type; valid types are: array, boolean, integer, number, object, string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions