-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Supply custom "property name" for additionalProperties #622
Comments
@dbeacham thanks for the feature request! It requires using vendor extension but I can't come up with a better name than |
I'm eagerly waiting for this feature to be implemented (property1/2 has absolutely no meaning in my documentation). |
Is there any progress on this feature request ? |
@kzhou57 not really. PR would be appreciated |
Where would you expect Under or at the same level of |
Supply custom name to be displayed for property name of `additionalProperties`.
|
I think this issue can be closed. |
Oh, I forgot to close it. But I think I will first resolve #622 (comment) and close it then. |
Just came across this after opening a similar ticket on the OpenAPI spec repo. I also suggested being able to specify a description and schema as well as the label. Probably not worth implementing those until its part of the spec, but thought I'd post here for anyone else interested in this feature. |
I see that this is now partially supported in a way. The name that shows up in the schema has changed from "property name*" to whatever x-additionalPropertiesName is set to. However the responses samples output still shows property1... and it looks like it's hardcoded. Would love to see this be applied to the response samples too. Thanks. |
Same question as @easterncoder, not sure how this should be handled: Should I create new issue for it? |
Would be nice to better describe/document the keys within
additionalProperties
where appropriate. I often have mappings where the key isn't completely free form (e.g. a named unique identifier or an integer with some meaning) and would be nice to have the docs relfect that, e.g:rather than
Will also suggest such a change in the OpenAPI specification but is it possible/desirable to add the ability to override the "property name*" value?
Would also be useful in the generated examples where the keys are "property1", "property2" but could be tied to the name in the docs, e.g. "player-id-1", "player-id-2"
The text was updated successfully, but these errors were encountered: