2018-04-17 12:18:40 +00:00
|
|
|
"""OpenAPI core schemas enums module"""
|
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
|
|
|
class SchemaType(Enum):
|
|
|
|
|
2018-08-02 18:30:51 +00:00
|
|
|
ANY = None
|
2018-04-17 12:18:40 +00:00
|
|
|
INTEGER = 'integer'
|
|
|
|
NUMBER = 'number'
|
|
|
|
STRING = 'string'
|
|
|
|
BOOLEAN = 'boolean'
|
|
|
|
ARRAY = 'array'
|
|
|
|
OBJECT = 'object'
|
|
|
|
|
|
|
|
|
|
|
|
class SchemaFormat(Enum):
|
|
|
|
|
|
|
|
NONE = None
|
|
|
|
INT32 = 'int32'
|
|
|
|
INT64 = 'int64'
|
|
|
|
FLOAT = 'float'
|
|
|
|
DOUBLE = 'double'
|
|
|
|
BYTE = 'byte'
|
|
|
|
BINARY = 'binary'
|
|
|
|
DATE = 'date'
|
|
|
|
DATETIME = 'date-time'
|
|
|
|
PASSWORD = 'password'
|
2019-02-26 05:57:50 +00:00
|
|
|
UUID = 'uuid'
|
2019-07-13 11:51:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
class UnmarshalContext(Enum):
|
|
|
|
REQUEST = 'request'
|
|
|
|
RESPONSE = 'response'
|