An error occurred while fetching the assigned milestone of the selected merge_request.
Created by: saschpe
Resolves #14280 (closed)
PR checklist
-
Read the contribution guidelines. -
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community. -
Run the following to build the project and update samples: ./mvnw clean package ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh
./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH. -
File the PR against the correct branch: master
(6.3.0) (minor release - breaking changes with fallbacks),7.0.x
(breaking changes without fallbacks) -
If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.
Activity
did a test to confirm the fix
--- a/src/main/kotlin/org/openapitools/model/ExampleDTO.kt +++ b/src/main/kotlin/org/openapitools/model/ExampleDTO.kt @@ -25,7 +25,7 @@ data class ExampleDTO( @get:JsonProperty("id", required = true) val id: kotlin.String, @Schema(example = "null", required = true, readOnly = true, description = "") - @get:JsonProperty("name", required = true) val name: kotlin.String? = null, + @get:JsonProperty("name", required = true) val name: kotlin.String, @Schema(example = "null", description = "") @get:JsonProperty("surname") val surname: kotlin.String? = null
added Issue: Bug Server: Kotlin labels
changed milestone to %6.5.0
Created by: zaenk
This way the generated schema can only be used for responses, but not for requests.
readOnly
should only affect the relevant scope, as per OpenAPI specification.type: object properties: id: # Returned by GET, not used in POST/PUT/PATCH type: integer readOnly: true
https://swagger.io/docs/specification/data-models/data-types/#readonly-writeonly
Please register or sign in to reply