You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add x-additionalPropertiesName (#622)
Supply custom name to be displayed for property name of
`additionalProperties`.
* Include prettier output for Schema.ts
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -218,6 +218,7 @@ ReDoc makes use of the following [vendor extensions](https://swagger.io/specific
218
218
*[`x-tagGroups`](docs/redoc-vendor-extensions.md#x-tagGroups) - group tags by categories in the side menu
219
219
*[`x-servers`](docs/redoc-vendor-extensions.md#x-servers) - ability to specify different servers for API (backported from OpenAPI 3.0)
220
220
*[`x-ignoredHeaderParameters`](docs/redoc-vendor-extensions.md#x-ignoredHeaderParameters) - ability to specify header parameter names to ignore
221
+
*[`x-additionalPropertiesName`](docs/redoc-vendor-extensions.md#x-additionalPropertiesName) - ability to supply a descriptive name for the additional property keys
221
222
222
223
### `<redoc>` options object
223
224
You can use all of the following options with standalone version on <redoc> tag by kebab-casing them, e.g. `scrollYOffset` becomes `scroll-y-offset` and `expandResponses` becomes `expand-responses`.
Copy file name to clipboardExpand all lines: docs/redoc-vendor-extensions.md
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -278,3 +278,31 @@ PayPalPayment:
278
278
279
279
In the example above the names of definitions (`PayPalPayment`) are named differently than
280
280
names in the payload (`paypal`) which is not supported by default `discriminator`.
281
+
282
+
#### x-additionalPropertiesName
283
+
**ATTENTION**: This is ReDoc-specific vendor extension. It won't be supported by other tools.
284
+
285
+
Extends the `additionalProperties` property of the schema object.
286
+
287
+
| Field Name | Type | Description |
288
+
| :------------- | :------: | :---------- |
289
+
| x-additionalPropertiesName | string | descriptive name of additional properties keys |
290
+
291
+
###### Usage in ReDoc
292
+
ReDoc uses this extension to display a more descriptive property name in objects with `additionalProperties` when viewing the property list with an `object`.
0 commit comments