diff --git a/lemur/defaults/schemas.py b/lemur/defaults/schemas.py index f7267301..c03d6d85 100644 --- a/lemur/defaults/schemas.py +++ b/lemur/defaults/schemas.py @@ -11,13 +11,13 @@ from lemur.authorities.schemas import AuthorityNestedOutputSchema class DefaultOutputSchema(LemurOutputSchema): - __envelope__ = False authority = fields.Nested(AuthorityNestedOutputSchema) country = fields.String() state = fields.String() location = fields.String() organization = fields.String() - organizationalUnit = fields.String() + organizational_unit = fields.String() + issuer_plugin = fields.String() default_output_schema = DefaultOutputSchema() diff --git a/lemur/defaults/views.py b/lemur/defaults/views.py index 982af49c..9d2c9dd4 100644 --- a/lemur/defaults/views.py +++ b/lemur/defaults/views.py @@ -65,8 +65,8 @@ class LemurDefaults(AuthenticatedResource): state=current_app.config.get('LEMUR_DEFAULT_STATE'), location=current_app.config.get('LEMUR_DEFAULT_LOCATION'), organization=current_app.config.get('LEMUR_DEFAULT_ORGANIZATION'), - organizationalUnit=current_app.config.get('LEMUR_DEFAULT_ORGANIZATIONAL_UNIT'), - issuerPlugin=current_app.config.get('LEMUR_DEFAULT_ISSUER_PLUGIN'), + organizational_unit=current_app.config.get('LEMUR_DEFAULT_ORGANIZATIONAL_UNIT'), + issuer_plugin=current_app.config.get('LEMUR_DEFAULT_ISSUER_PLUGIN'), authority=default_authority )