Skip to content

Nullable ignored on property values #240

@Foorack

Description

@Foorack

OpenAPI version
3.0

Is your feature request related to a problem? Please describe.

Current validation does not respect nullable on propertiy fields.

User.yaml:

title: User
type: object
properties:
  accountDeletionDate:
    type: string
    format: date
    nullable: true

Response is accountDeletionDate is null.
Error message: res did not satisfy it because: accountDeletionDate should be string

Describe the solution you'd like
For the validation to pass.

Are you going to resolve the issue?
I can make a PR if that will be fastest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions