-
Notifications
You must be signed in to change notification settings - Fork 39
Changelog
Lukas Ruegner edited this page Sep 16, 2023
·
27 revisions
- add support for type-safe routes / resources-plugin
- add support for external documentation
- fix bug: schemas with wildcard generics (e.g. Array<*>) throw exception
- add
rootHostPath
to plugin-config for improved support for reverse-proxies - add
customSchemas.includeAll
to plugin-config to also include custom schemas that are not directly references by any route - add github actions to automatically run tests and-code style-checks
- fix bug: schema for file-uploads not generated correctly
- fix bug: Schema-annotation with "nullable = true" breaks schema generation
- fixed a bug where the component name of schemas of inner array elements was wrong
- publish to maven central
- add flag
protected
to route-documentation to overwrite default behaviour, i.e. manually mark route as protected or not
- improved automatic schema handling
- changes in plugin-configuration
- removed
canonicalNameObjectRefs
,schemasInComponentSection
,examplesInComponentSection
,jsonSchemaBuilder
- replaced
automaticTagGenerator
withgenerateTags
- added
encoding
-section
- removed
- schema and example generation process more extendable (via
encoding
-config section) allowing for simpler integration of other schema-generators and json-serializers (e.g. supporting kotlinx and multiplatform) - see KotlinxExample.kt - print exceptions thrown during api generation
- upgrade swagger parser to 2.1.13 due to vulnerabilities
- add
@Example
-Annotation to add example values directly on fields of the model - support for (some features of) the openapi-core
@Schema
-Annotation
- added "hidden"-flag to not include routes in openapi-spec
- add (basic) support for swagger @Schema-annotation to add more information (mainly description, title, required, nullable) to schemas/fields
- fix bug: primitive body types (int, float, ...) default to type "string" when specified via generics
- fix bug: example values for parameters could not be set and were mixed up with the "explode"-option
- allow multiple security schemes per route
- add config (
ignoredRouteSelectors
) to ignore specific ktor route-selectors - enable usage of custom object schemas as object or array
- add option to mark routes as deprecated
- bugfix: changed
canonicalNameObjectRefs
in plugin-config from val to var
- fix bug: changed canonicalNameObjectRefs to var in plugin-config
- use simpleName instead of canonicalName for objects by default, can be configured via
canonicalNameObjectRefs
- upgrade to ktor 2.2.2
- bugfix: fixed "operationsSorter"-value
- fix bug: json-schemas for maps were not generated correctly
- exclude documented-route from route-string
🥳
- make json-schema-generator configurable
- upgrade to ktor 2.2.1
- add (basic) support for multipart-bodies
- add additional configuration-options for swagger-ui
- fix: add missing enum mapping for schemas
- added support for custom predefined schemas
- added support for custom json-schema-builders
- fixed bug: configured rootPath (in application.conf) not respected
- fixed bug: security scheme not added to openapi-spec
- add
@DslMarker
for more safety - protect Swagger-UI and OpenApi-json with custom authentication
- improved/proper support for generics in schemas (e.g.
body<MyResponse>()
as alternative tobody(MyResponse::class)
) - support external json-schemas for bodies
- support for default responses and responses for custom status-codes
- support
operationId
- Getting Started
- Configuration
- Documenting Routes
- Multiple Api-Specs
- Examples
- Changelog
Documentation for previous versions: