Skip to content

Decimal and multipleOf #131

@jayvdb

Description

@jayvdb

multipleOf is defined as

The value of "multipleOf" MUST be a number, strictly greater than 0.
A numeric instance is valid only if division by this keyword's value results in an integer.

And number is defined as whole numbers, distinct from floats.

The use of this for decimal .decimal_places results in invalid OpenAPI schemas. A regex validator would be the way to achieve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions