Repository navigation
Highlights
@ApiSchema()takes the keywords that apply to a schema as a whole, such asdeprecated,additionalProperties,title,exampleanddiscriminator, and copies them into the generated schema. Its options used to be typed asnameanddescriptiononly.- 40 fixes to the generated document. Many cover inherited and mapped types, the CLI plugin's comment introspection, and schemas built from Standard Schema models.
Features
Bug fixes
- fix(explorer): let a subclass override an inherited class-level extension (8110399)
- fix(type-helpers): let a plugin-only property of a later intersected class replace the type (4c6dbe7)
- fix(scanner): resolve async imports when deep scanning included modules (65bb8c2)
- fix(transformer): allow anonymous access to merged handlers only if all do (2930050)
- fix(plugin): collect classes exported by an export statement in readonly mode (1cdb3fe)
- fix(plugin): document parameter properties declared with override only (f1c003c)
- fix(plugin): keep stacked @apioperation decorators with introspectComments (5c361bf)
- fix(plugin): use the name a workspace package exports a type under (15e5c54)
- fix(plugin): reference same-file types by their declared name in esm output (134639c)
- fix(type-helpers): document a plugin-only re-declaration in mapped types and subclasses (6493b61)
- fix(schema): keep non-plain default and example values of standard schemas (c564a25)
- fix(api-property): let a re-declared enum replace the inherited one (05b7c7d)
- fix(api-link): skip links from a field hidden with @ApiHideProperty() (e4ca149)
- fix(type-helpers): honour @ApiHideProperty() above an inherited metadata factory (7fedef3)
- fix(explorer): let a subclass override an inherited class-level header (e2cb986)
- fix(scanner): give each document its own copy of the component schemas (ac01d9b)
- fix(schema): omit hidden model properties from parameter defaults (3f24754)
- fix(schema): copy a param schema before adding its required list (f31ef59)
- fix(explorer): drop overridden parent params when the override is inherited (0614554)
- fix(transformer): keep unnamed webhooks that share a method name (124a1eb)
- fix(transformer): keep document-wide security of handlers sharing a path (039e975)
- fix(swagger-ui): serialize the embedded document like the json endpoint (8484262)
- fix(swagger-module): let other methods reach app routes at stock files (bf2def5)
- fix(api-property): reference the model of a nested array type by @hicay in #4324
- fix(explorer): let a subclass override an inherited class-level param by @pengzh1 in #4325
- fix(schema): put nested array property metadata on the outer array by @hicay in #4323
- fix(swagger): document an enum array declared with type: [X] by @ofri-peretz in #4320
- fix(swagger): resolve the schema path of a class with a bare @ApiSchema() by @ofri-peretz in #4315
- fix(plugin): emit negative numbers in literal union enums by @kkatalz in #4314
- fix(document-builder): keep standard schemas intact in built configs by @erichardson30 in #4312
- fix(schema): map primitive type names to scalar response and body schemas by @kkatalz in #4307
- fix(plugin): read the jsdoc comment that follows other leading comments by @kkatalz in #4309
- fix(utils): respect the @ApiSchema() name in refs() by @shivangithaker-0510 in #4303
- fix(plugin): read multi-line and next-line @throws descriptions by @kkatalz in #4301
- fix(plugin): keep @deprecated and @remarks on methods without a summary by @kkatalz in #4300
- fix(explorer): explore class-level @ApiCallbacks metadata by @helmipradita in #4298
- fix(schema): move array examples from parameters into the schema by @kkatalz in #4295
- fix(explorer): keep operation ids of routes for all methods unique by @mwawacek in #4289
- fix(explorer): add class-level extensions to inherited routes by @SudeepGowda55 in #4291
- fix(api-link): link to the operation id of a versioned route by @mwawacek in #4290
Full Changelog: 12.1.2...12.1.3