2016-12-02 00:42:03 +01:00
|
|
|
"""
|
|
|
|
.. module: lemur.defaults.schemas
|
|
|
|
:platform: unix
|
|
|
|
:copyright: (c) 2015 by Netflix Inc., see AUTHORS for more
|
|
|
|
:license: Apache, see LICENSE for more details.
|
|
|
|
.. moduleauthor:: Kevin Glisson <kglisson@netflix.com>
|
|
|
|
"""
|
|
|
|
from marshmallow import fields
|
|
|
|
from lemur.common.schema import LemurOutputSchema
|
|
|
|
from lemur.authorities.schemas import AuthorityNestedOutputSchema
|
|
|
|
|
|
|
|
|
|
|
|
class DefaultOutputSchema(LemurOutputSchema):
|
|
|
|
authority = fields.Nested(AuthorityNestedOutputSchema)
|
|
|
|
country = fields.String()
|
|
|
|
state = fields.String()
|
|
|
|
location = fields.String()
|
|
|
|
organization = fields.String()
|
2016-12-02 18:54:16 +01:00
|
|
|
organizational_unit = fields.String()
|
|
|
|
issuer_plugin = fields.String()
|
2016-12-02 00:42:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
default_output_schema = DefaultOutputSchema()
|