Skip to content

Commit

Permalink
f view
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Sep 20, 2021
1 parent c38ac0c commit 646d00e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lms/validation/_api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""Schema for JSON APIs exposed to the frontend."""

import marshmallow

from marshmallow import Schema
from webargs import fields

from lms.validation._base import JSONPyramidRequestSchema, PyramidRequestSchema
Expand Down Expand Up @@ -72,8 +74,8 @@ class APIRecordResultSchema(JSONPyramidRequestSchema):


class APICanvasCreateAssignment(PyramidRequestSchema):
class Content:
class File:
class Content(Schema):
class File(Schema):
display_name = fields.Str(required=True)
id = fields.Integer(required=True)
updated_at = fields.String(required=True)
Expand All @@ -84,5 +86,5 @@ class File:
file = fields.Nested(File, required=False)

ext_lti_assignment_id = fields.Str(required=True)
course_id = fields.Number(required=True)
course_id = fields.Integer(required=True)
content = fields.Nested(Content, required=True)

0 comments on commit 646d00e

Please sign in to comment.