You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
I try to use a enum property, but override readOnly attribute (same for description, and all others), but it is not working.
I only noticed, because I'm having my own template script (not related to this problem!) to not generate @NotNull anotation in case of required but readOnly attribut, like here: #9655
This is the proposed way of dealing with readOnly consider by OpenAPI spec / JSON schema, see:
Bug Report Checklist
Description
I try to use a enum property, but override
readOnly
attribute (same fordescription
, and all others), but it is not working.I only noticed, because I'm having my own template script (not related to this problem!) to not generate
@NotNull
anotation in case of required but readOnly attribut, like here: #9655This is the proposed way of dealing with readOnly consider by OpenAPI spec / JSON schema, see:
openapi-generator version
latest version, master.
OpenAPI declaration file content or url
File
src/test/resources/3_0/allOf-readonly.yaml
Generation Details
Steps to reproduce
Test for
DefaultCodegenTest
Related issues/PRs
Suggest a fix
When a property is a ComposedSchema (espacially an "allOf") it should sync/merge all readOnly / description / ... values...
The text was updated successfully, but these errors were encountered: