-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Swagger] Doc: Changing the name of a definition #368
Conversation
core/swagger.md
Outdated
### Changing the name of a definition | ||
|
||
ApiPlatform generates a definition name based on the serializer `groups` defined | ||
in the (`de`)`denormalization_context`. It's possible to override the name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(de
)normalization_context
core/swagger.md
Outdated
} | ||
``` | ||
|
||
It's also possible to re-use the `normalization_context`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(de
)normalization_context
510c55f
to
17d9e25
Compare
Thanks @alanpoulain . I have applied your recommendations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some minor style changes in your branch.
Thanks ;) |
Thanks @lyrixx! |
ref: api-platform/core#1607