-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
72 pictures schema #80
base: master
Are you sure you want to change the base?
Conversation
models.py
Outdated
@classmethod | ||
def get_schema(cls): | ||
return PictureSchema() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questo OrderItem che ha come schema PictureSchema non mi sembra proprio corretto. Copy-paste andato male?
schemas.py
Outdated
class PictureSchema(Schema): | ||
uuid = fields.UUID(required=True, dump_only=True) | ||
title = fields.Str(required=True, validate=check_empty_str, dump_only=True) | ||
extension = fields.Str(required=True, validate=check_empty_str, dump_only=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nella ItemPictureResource stiamo prendendo in input title e extension, quindi direi che questi dump_only
non ci vogliono.
a8b6d67
to
f904b9b
Compare
f904b9b
to
8007630
Compare
No description provided.