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
The property c_type_list is not referenced, it is written completely to the FilterSchema. Only if I put the ContractType enum into another Schema it is referenced... This leads to the problem in the client generator which loses the connection to the ContractType Component if it is not referenced in the FilterSchema.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I cannot explain this behavior. Is this intended or a bug? I've the follwing code:
The curios behavior in the openapi is:
"ContractFilterSchema": { "properties": { "c_type": { "$ref": "#/components/schemas/ContractType" }, "c_type_list": { "items": { "enum": [ "Type 1", "Type 2" ], "title": "ContractType", "type": "string" }, "title": "C Type List", "type": "array" }, "c_type_list_ref": { "items": { "properties": { "c_type": { "$ref": "#/components/schemas/ContractType" } },
The property c_type_list is not referenced, it is written completely to the FilterSchema. Only if I put the ContractType enum into another Schema it is referenced... This leads to the problem in the client generator which loses the connection to the ContractType Component if it is not referenced in the FilterSchema.
Beta Was this translation helpful? Give feedback.
All reactions