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

Update schemas.py

parent 5e824113
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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):