Python flask_restplus.fields.Nested() Examples

The following are 1 code examples of flask_restplus.fields.Nested(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module flask_restplus.fields , or try the search function .
Example #1
Source File: error.py    From treadmill with Apache License 2.0 5 votes vote down vote up
def models(api):
    """Get the error models"""
    erorr_id_why = api.model('ErrorIdWhy', ERROR_ID_WHY_FIELDS)
    error_model = api.model('ErrorResp', {
        '_error': fields.Nested(erorr_id_why),
    })

    return erorr_id_why, error_model