Skip to content

Bug when validating schema with "multipleOf" field #44

@slinkydeveloper

Description

@slinkydeveloper

Bug in NumericUtils.NumericType

Description

When you try to load a path parameter (I think in general a scheme) with "multipleOf" field, it fails in a ExceptionInInitializerError inside NumericUtils.zero()

Steps to reproduce

Try to load and validate a spec with a path like this:

/pets/{petId}:
    get:
      summary: Info for a specific pet
      operationId: showPetById
      tags:
        - pets
      parameters:
        - name: petId
          in: path
          required: true
          description: The id of the pet to retrieve
          schema:
            type: integer
            multipleOf: 1.0

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