Closed HendrikRoth closed 1 year ago
payload-openapi
Hej, thanks for your plugins! Found a little issue:
{ "paths": { "/{collection}/{id}": { "patch": { "summary": "Updates a [object Object]" } } } }
labels are not always a string. Using i18n, labels is an object:
labels: { singular: { // ... }, plural: { // ... } }
Link: https://payloadcms.com/docs/configuration/i18n
{ "paths": { "/{collection}/{id}": { "patch": { "summary": "Updates a {collectionlabel.singular.en}" } } } }
adding i18n labels to a collection.
1.0.3
1.6.32
No response
Thanks for reporting this issue. I've added support for this scenario and released version 1.0.4 of payload-openapi. You can now set docs as language, else it will use en.
docs
en
Package name
payload-openapi
What happened?
Hej, thanks for your plugins! Found a little issue:
labels are not always a string. Using i18n, labels is an object:
Link: https://payloadcms.com/docs/configuration/i18n
What did you expect
Setps to reproduce
adding i18n labels to a collection.
Tool version
1.0.3
Payload version
1.6.32
Node version
No response