Skip to content

Request validation fails for arguments expecting a Float when the input has no decimal part #112

@gregopet

Description

@gregopet

Version

5.0.1

Context

I expected the validation of a float parameter to pass if the input had no decimal part, instead it fails with number does not match the format

Steps to reproduce

  • declare a property of type float: { "type": "number", "format": "float" }
  • send a request where the value of this property is e.g. 10
  • validation fails with number does not match the format

Do you have a reproducer?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions