Releases: SMILEY4/ktor-openapi-tools
Releases · SMILEY4/ktor-openapi-tools
5.0.0
ℹ️ This repository has been renamed from "ktor-swagger-ui" to "ktor-openapi-tools" to better reflects its content and multiple independent libraries ktor-openapi
, ktor-swagger-ui
and ktor-redoc
-
split project into submodules: ktor-openap and ktor-swagger-ui (and ktor-redoc)
- "ktor-openapi" plugin is responsible only for generating and providing an openapi-file
- no longer
install(SwaggerUI)
but nowinstall(OpenApi)
- can be used without the swagger-ui dependency
- no longer
- "ktor-swagger" library to provide routes to server swagger-ui for any openapi-file (based on given url)
- can be used with any openapi file or generator
- this split allows for more flexibility and new features using openapi-files without swagger-ui (e.g. redoc)
- "ktor-openapi" plugin is responsible only for generating and providing an openapi-file
-
cleanup package structure, naming, configuration
- shorter and cleaner package names
- shorter and more uniform class names
- slightly simpler configuration dsl
- made all internal classes actually "internal" -> less namespace pollution
-
TypesafeRouting plugin
- improved support for TypesafeRouting plugin
- automatically detect path and query parameters
-
improved schema generation
- added typealias
GenericSchemaGenerator
for schema generation function - create pre-defined configurable schema generators for reflection and kotlinx-serialization
- kotlinx-serialization schema generator can be configured using the kotlinx "Json" object (also used for serializing real ktor requests and responses)
- added pre-defined custom analysis and schema generation modules (SchemaGenerator.TypeOverwrites.XYZ) for common types
- remove old "type overwrites" (no longer necessary due to more powerful and flexible schema generator)
- added typealias
-
example encoding
- renamed typealias
ExampleEncoder
toGenericExampleEncoder
- moved default example encoder to
ExampleEncoder.internal
- moved
kotlinxExampleEncoder
to ExampleEncoder.kotlinx - create pre-defined configurable example encoders for internal swagger encoder and kotlinx-serialization
- kotlinx-serialization example encoder can be configured using the kotlinx "Json" object (also used for serializing real ktor requests and responses)
- renamed typealias
-
added support for ReDoc as new library
-
added missing configuration options for Swagger UI
-
added basic support for documenting webhooks
-
upgrade schema-kenerator to 2.1.0
-
upgrade ktor to 3.1.1
-
overhauled documentation (https://smiley4.github.io/ktor-openapi-tools/latest/)
4.1.6
5.0.0-beta.2
- added support for redoc (
ktor-redoc
-project)
4.1.5
- fix bug: plugin configuration not merged correctly when using multiple openapi-specs (some changes in main config did not apply to specific spec configs)
- fix bug: multipart-body used the old schema
type
-property instead oftypes
, resulting in a broken schema - fixed examples: multipart-body examples used the old schema
type
-property instead oftypes
, resulting in a broken schemas
4.1.4
4.1.3
3.6.1
5.0.0-beta.1
- split project into submodules: ktor-openap and ktor-swagger-ui
- "ktor-openapi" plugin is responsible only for generating and providing an openapi-file
- no longer
install(SwaggerUI)
but nowinstall(OpenApi)
- can be used without the swagger-ui dependency
- no longer
- "ktor-swagger" library to provide routes to server swagger-ui for any openapi-file (based on given url)
- can be used with any openapi file or generator
- this split allows for more flexibility and new features using openapi-files without swagger-ui (e.g. redoc)
- "ktor-openapi" plugin is responsible only for generating and providing an openapi-file
- cleanup package structure, naming, configuration
- shorter and cleaner package names
- shorter and more uniform class names
- slightly simpler configuration dsl
- made all internal classes actually "internal" -> less namespace pollution