google / google/flatbuffers

JSON schema generation does not allow differentiation between double and float

Open
#9,071 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
26.5k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

As per https://github.com/google/flatbuffers/blob/bab10754d93d74d1ff44d46de63558bc4127f7d8/src/idl_gen_json_schema.cpp#L89 lines 89-91, the generated JSON schema describes both float and double as "number" with no indication of the field width unlike with integers where min and max are provided.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.