@@ -308,6 +308,55 @@ parameter to some classes or function to force order preservation:
308308- globally on :class: `Namespace `: ``ns = Namespace(ordered=True) ``
309309- locally on :func: `marshal `: ``return marshal(data, fields, ordered=True) ``
310310
311+ Configuration
312+ -------------
313+
314+ The following configuration options exist for Flask-RESTPlus:
315+
316+ ============================ =============== ==================================
317+ OPTION DEFAULT VALUE DESCRIPTION
318+ ============================ =============== ==================================
319+ ``BUNDLE_ERRORS `` ``False `` Bundle all the validation errors
320+ instead of returning only the
321+ first one encountered.
322+ See the `Error Handling
323+ <parsing.html#error-handling> `__
324+ section of the documentation for
325+ details.
326+ ``RESTPLUS_VALIDATE `` ``False `` Whether to enforce payload
327+ validation by default when using
328+ the ``@api.expect() `` decorator.
329+ See the `@api.expect()
330+ <swagger.html#the-api-expect-decorator> `__
331+ documentation for details.
332+ ``RESTPLUS_MASK_HEADER `` ``X-Fields `` Choose the name of the *Header *
333+ that will contain the masks to
334+ apply to your answer.
335+ See the `Fields masks <mask.html >`__
336+ documentation for details.
337+ ``RESTPLUS_MASK_SWAGGER `` ``True `` Whether to enable the mask
338+ documentation in your swagger or
339+ not.
340+ See the `mask usage
341+ <mask.html#usage> `__ documentation
342+ for details.
343+ ``RESTPLUS_JSON `` ``{} `` Dictionary of options to pass to
344+ the json *serializer * (by default
345+ ``json.dumps ``).
346+ ``RESTPLUS_JSON_SERIALIZER `` ``None `` Here you can choose your
347+ own/preferred json *serializer *.
348+ You can either specify the name
349+ of the module (example: ``ujson ``)
350+ or you can give the full name of
351+ your *serializer * (example:
352+ ``ujson.dumps ``).
353+
354+ .. note::
355+ If you only specify the module
356+ name the default Flask-RESTPLUS
357+ behavior is to import its
358+ ``dumps `` method.
359+ ============================ =============== ==================================
311360
312361Full example
313362------------
0 commit comments