Commit 2fb85ba7 authored by Barbora Kompišová's avatar Barbora Kompišová
Browse files

Update schemas.py

parent 5e824113
Pipeline #13283 passed with stage
in 12 minutes and 42 seconds
......@@ -303,7 +303,7 @@ class SecretSchema(BaseSchema, Schema):
"""
name = fields.Str()
expires_at = fields.LocalDateTime(allow_none=True)
client = NESTED('client')
client = NESTED['client']
class CourseImportConfigSchema(Schema):
......@@ -391,8 +391,8 @@ class Schemas:
'courses': (*CODENAME_W_DESC,),
'config_reduced': (*ALWAYS_ALLOWED, 'project', 'submissions_allowed_from',
'submissions_allowed_to', 'file_whitelist'),
'secrets': (*ALWAYS_ALLOWED, 'name', 'expires_at'),
'secret': (*ALWAYS_ALLOWED, 'name', 'expires_at')
'secrets': (*ALWAYS_ALLOWED, 'name', 'expires_at', 'client.id', 'client.type', 'client.name', 'client.codename'),
'secret': (*ALWAYS_ALLOWED, 'name', 'expires_at', 'client.id', 'client.type', 'client.name', 'client.codename')
}
def __get_schema(self, schema_klass, select_params=None, only=None, strict=True, **kwargs):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment