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
There is a POST request and the body uses allOf to combine different structs. If there is a read-only property in a struct, then the generated interface is incorrectly.
Bug Report Checklist
Description
There is a POST request and the body uses
allOf
to combine different structs. If there is a read-only property in a struct, then the generated interface is incorrectly.It generates:
but it is expected.
(By the way, it works perfectly if I change the OpenAPI file to:
)
openapi-generator version
7.9.0-SNAPSHOT
OpenAPI declaration file content or url
Generation Details + Steps to reproduce
I simple updated
modules/openapi-generator/src/test/resources/3_0/allOf-readonly.yaml
and run./generate_clients.sh
from this git repositoryRelated issues/PRs
Suggest a fix
I tried to debug it, but I only find out, that there is some information is missing...
Looks like it is not so simple to implement read-only and write-only perfectly...
The text was updated successfully, but these errors were encountered: