OpenQuizz
Une application de gestion des contenus pédagogiques
webargs.fields Namespace Reference

Data Structures

class  DelimitedFieldMixin
 
class  DelimitedList
 
class  DelimitedTuple
 
class  Nested
 

Detailed Description

Field classes.

Includes all fields from `marshmallow.fields` in addition to a custom
`Nested` field and `DelimitedList`.

All fields can optionally take a special `location` keyword argument, which
tells webargs where to parse the request argument from.

.. code-block:: python

    args = {
"active": fields.Bool(location="query"),
"content_type": fields.Str(data_key="Content-Type", location="headers"),
    }