Releases: fastify/fluent-json-schema
Releases · fastify/fluent-json-schema
v1.0.1
Bugs
- Added types for FORMATS #66 @dfee
- Fix doc reference links and other doc improvements #68 @satazor
v1.0.0
Features
- Moved the lib to 1.0.0
- Added FluentError (#64)
Bugs
- Fix prop type checking (#64)
- fixes typings for typescript usage (both CommonJS and ES6 modules) (#63)
v0.10.0
Features
- Add S.raw (#56)
- Improve docs (#58)
v0.9.0
Bugs
- Drop
S.extend #46
in favour of S.object().extend(baseSchema)
#54
v0.8.0
Features
- Add
S.extend
#46 to extend an existing schema. This allows using additionalProperties(false)
v0.7.7
Features
Bug fixes
- Allow concatenating a prop after ifThen or ifThenElse #52
v0.7.5
Release Notes
- AdditionalProperties accepts
true
as value #43
- Export
isFluentSchema
property in Typescript definitions #44
v0.7.4
Features
Added a property isFluentSchema
in every FluentSchema object.
const S = require('fluent-schema')
const schema = S.object()
.prop('foo', S.string())
.prop('bar', S.number())
console.log(schema.isFliuentSchema) // true
The previous method based on Symbol.for('fluent-schema-object')
has been deprecated but it still available
v0.7.3
Features
Added symbol to identify fluent schema objects
const S = require('fluent-schema')
const schema = S.object()
.prop('foo', S.string())
.prop('bar', S.number())
console.log(schema[Symbol.for('fluent-schema-object')]) // true
v0.7.2
- Add
readOnly
and writeOnly
property
S.object()
.prop('foo', S.string().readOnly())
.prop('bar', S.string().writeOnly(true))