Hi there,
I'm wondering if there currently is any way to define language-specific values for the descriptive elements in the specification, such as description, or example?
For example:
{
"title": "Sample Pet Store App",
"description": "This is a sample server for a pet store.",
"version": "1.0.1"
}
Might be rewritten to:
{
"title": "Sample Pet Store App",
"description": {
"*": "This is a sample server for a pet store.",
"fr": "Ceci est un exemple de serveur pour une animalerie.",
},
"version": "1.0.1"
}
Where title is a string, so it will be used as the text for all languages, while description is an object consisting of language codes that code generators can use for additional language options (in this example, the * is used as a default wildcard).
Does something like this exist?
Hi there,
I'm wondering if there currently is any way to define language-specific values for the descriptive elements in the specification, such as
description, orexample?For example:
Might be rewritten to:
Where
titleis a string, so it will be used as the text for all languages, whiledescriptionis an object consisting of language codes that code generators can use for additional language options (in this example, the * is used as a default wildcard).Does something like this exist?