class NotePostRequestSchema(ma.SQLAlchemySchema): class Meta: model = NoteModel """ Валидационная схема входных данных post-запроса """ note = ma.Str() private = ma.Bool(required=False)
class NoteRequestSchema(ma.SQLAlchemySchema): class Meta: model = NoteModel text = ma.Str() private = ma.Bool(required=False)