-
-
Notifications
You must be signed in to change notification settings - Fork 553
Closed
Labels
invalidThis doesn't seem rightThis doesn't seem right
Description
Describe the bug
When building the same case as the springdoc-kotlin-test module does here in a spring boot 3 webMVC app, the openAPI-spec ends up with all the fields being reported as required.
To Reproduce
I've copied the resources from the test referenced above into an example app with a (failing) test which can be found here:
https://github.com/olbpetersson/springdoc-webmvc-test/blob/main/src/test/kotlin/com/example/demo/DemoApplicationTests.kt
and can be executed via ./gradlew bootRun & ./gradlew test
Expected behavior
The fields annotated with @Schema.RequiredMode.NOT_REQUIRED should not end up in the required list. The openAPI-spec should be the same as the one in app9.json referenced above
Screenshots
Additional context
Metadata
Metadata
Assignees
Labels
invalidThis doesn't seem rightThis doesn't seem right