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
504 - Fix additionalProperties on object type (#523)
As stated in the documentation:
https://swagger.io/docs/specification/data-models/dictionaries/
Freeform objects (objects with any value) can be defined by setting
additionalProperties either to true or {}. Previously:
foo?: { [key: string]: { [key: string]: any } }
was the output instead of:
foo?: { [key: string]: any }
This is fixed and tested with this PR.
Co-authored-by: fabio.wanner <[email protected]>
constoneOf: any[]|undefined=(node.additionalPropertiesasany).oneOf||undefined;// TypeScript does a really bad job at inference here, so we enforce a type
0 commit comments