Repository navigation
@fumadocs/json-schema@0.3.8
·
1 commit
to dev
since this release
Sample a primitive $ref in allOf
- Sample
{ allOf: [{ $ref }] }of a string or number schema as its type instead ofnull.
Print the types of a titled type array
stringify()prints{ title: 'Age', type: ['integer', 'null'] }asinteger | nullinstead ofAge.
Respect maxProperties in map samples
- Sample at most
maxPropertiesentries of an object with onlyadditionalProperties.
Sample numbers inside exclusive bounds
- Sampled numbers stay inside narrow exclusive ranges, like
exclusiveMinimum: 0.1withexclusiveMaximum: 0.9.