-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschemas.py
49 lines (25 loc) · 982 Bytes
/
schemas.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from marshmallow import Schema, fields
class OneTwoEightSchema(Schema):
product_name = fields.Str(required=True)
class UpcASchema(Schema):
product_number = fields.Str(required=True)
class ThreeNineSchema(Schema):
product_name = fields.Str(required=True)
class IssnSchema(Schema):
product_code = fields.Str(required=True)
class IsbnTenSchema(Schema):
product_code = fields.Str(required=True)
class IsbnOneThreeSchema(Schema):
product_code = fields.Str(required=True)
class PznSevenSchema(Schema):
product_number = fields.Str(required=True)
class EanOneThreeSchema(Schema):
product_number = fields.Str(required=True)
class EanEightSchema(Schema):
product_number = fields.Str(required=True)
class JanSchema(Schema):
product_number = fields.Str(required=True)
class EanOneFourSchema(Schema):
product_number = fields.Str(required=True)
class GsOneOneTwoEightSchema(Schema):
product_code = fields.Str(required=True)