swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
25.96k stars 8.85k forks source link

feat(json-schema): support x-additionalPropertiesName #10006

Open eltoder opened 3 weeks ago

eltoder commented 3 weeks ago

x-additionalPropertiesName is a Redocly extension to display more descriptive property names in objects with additionalProperties[1]. This allows generating nicer looking and more informative documentation and examples than Swagger UI's current "additionalProp" name.

[1] https://redocly.com/docs/api-reference-docs/specification-extensions/x-additional-properties-name/

My PR contains...

My changes...

Documentation

I haven't found the right place to document the change, but happy to add documentation if such a place exists.

Automated tests