Repository navigation
v0.7.0
Minor Changes
-
Generated specs are now checked against the official OpenAPI schema. A spec that breaks it is still written, but
validation.validisfalseand the CLI exits with code 1.Output changes for existing users: in 3.0, a nullable reference gets the
type3.0 requires besidenullable, and exclusive bounds use 3.0's boolean form. A property'sexamplesarray stays on a query parameter's schema instead of the parameter. -
Explicit decorator options now win, as in @nestjs/swagger: a declared
typeover the TypeScript type, a responsecontentmap over the return type, and computed keys such as[PetKind.Cat]are read instead of dropped.Output changes for existing users: object schemas no longer carry
additionalProperties: false. Setschemas.additionalProperties: 'forbid'to keep it.
Patch Changes
- Fix two broken refs: a generic with an inline object argument, such as
ApiResponse<{ sent: boolean }>, is now written in place, andMap<string, T>,Record<string, T>andSet<T>become an object ofTor an array of uniqueT.