Skip to content

Allow nulls #89

@lidel

Description

@lidel

We had issues where null value caused an error in generated client ipfs/go-pinning-service-http-client#14.

I propose we make this more liberal and allow null when string or array is empty.
This way implementers have one less footgun to worry about.

OpenAPI 3.0 does not have an explicit null type as in JSON Schema, but you can use nullable: true to specify that the value may be null.
https://swagger.io/docs/specification/data-models/data-types/#null

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