Loading portal/rest/schemas.py +3 −3 Original line number Diff line number Diff line Loading @@ -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): Loading Loading @@ -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): Loading Loading
portal/rest/schemas.py +3 −3 Original line number Diff line number Diff line Loading @@ -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): Loading Loading @@ -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): Loading