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
I’d like to start a discussion around enhancing API Platform’s OpenAPI generator to support dynamic, directory‑based schema naming (feature request: see #2906). Currently, schema keys default to the DTO’s “short name,” which leads to collisions and unclear documentation when multiple operations share the same class name (for example, ResetPasswordInput used both for “request” and “perform” flows).
🎯 Goals
Clear, collision‑free schema names
Automatically generate keys in the pattern:
Zero configuration overhead
No need for manual _api_operation_name overrides or custom decorators. The naming should mirror the folder structure under:
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.
-
Hi everyone,
I’d like to start a discussion around enhancing API Platform’s OpenAPI generator to support dynamic, directory‑based schema naming (feature request: see #2906). Currently, schema keys default to the DTO’s “short name,” which leads to collisions and unclear documentation when multiple operations share the same class name (for example,
ResetPasswordInput
used both for “request” and “perform” flows).🎯 Goals
Clear, collision‑free schema names
Automatically generate keys in the pattern:
For example:
ResetPasswordEntryPoint.Request.ResetPasswordInput.jsonld
ResetPasswordEntryPoint.Reset.ResetPasswordInput.jsonld
Zero configuration overhead
No need for manual
_api_operation_name
overrides or custom decorators. The naming should mirror the folder structure under:Backward‑compatible opt‑in
Expose behind a config flag, e.g.:
🔧 Why This Matters
OpenApiFactory
decorators) that parse and rename schemas post‑hum.📚 Related
I’d love to gather feedback on:
Beta Was this translation helpful? Give feedback.
All reactions