Skip to content

Property with type sting, format number is outputted in json as a number rather than string. #635

Closed

Description

@jjjasper

When a property is defined as

stringTypedNumber:
  type: string
  format: number

the outputted json looks like

{
   "stringTypedNumber": 0.1

which is bad because precision is lost.

In 0.16.x the output would be a string.

Activity

  1. self-assigned this
    on Sep 15, 2023
  2. jjjasper commented on Sep 21, 2023

    @jjjasper
    CollaboratorAuthor

    This issue was fixed in 0.17.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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