-
-
Notifications
You must be signed in to change notification settings - Fork 566
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When using springdoc-openapi in a project with Spring Boot 3 + WebFlux + Kotlin Coroutines, the generated schema has ContinuationObject parameters.
To Reproduce
- Spring Boot: 3.0.0
- springdoc-openapi: 2.0.0
- springdoc-openapi modules:
springdoc-openapi-starter-commonandspringdoc-openapi-starter-webflux-api, also reproducible withspringdoc-openapi-starter-webflux-uialone. - Sample project: https://github.com/orange-buffalo/reproducer-springdoc-openapi-kotlin.
SchemaTest.ktis the test reproducing the problem.
Expected result
Same behaviour as on 1.x - no coroutines internals leaking into schema.
Actual result
Schema gets extra parameters:
- name: $completion
in: query
required: false
schema:
$ref: '#/components/schemas/ContinuationObject'And extra types:
ContinuationObject:
type: object
properties:
context:
$ref: '#/components/schemas/CoroutineContext'
CoroutineContext:
type: objectMetadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working