read me for parameterMacro

This commit is contained in:
Anna Bodnia
2017-05-23 15:36:42 +03:00
parent d5b9552a5a
commit 918e0e46c0
5 changed files with 44 additions and 46 deletions

View File

@@ -115,6 +115,7 @@ dom_id | The id of a dom element inside which SwaggerUi will put the user interf
oauth2RedirectUrl | OAuth redirect URL
operationsSorter | Apply a sort to the operation list of each API. It can be 'alpha' (sort by paths alphanumerically), 'method' (sort by HTTP method) or a function (see Array.prototype.sort() to know how sort function works). Default is the order returned by the server unchanged.
configUrl | Configs URL
parameterMacro | MUST be a function. Function to modify parameters. Accepts two arguments parameterMacro(operation, parameter). Operation is an object passed for context, remains immutable, parameter can be changed directly
### Plugins