openapi-core/openapi_core/schema/schemas/enums.py
Pedro Peixoto aa95bc5d02 Providing a context whenever unmarshalling objects on Request and Responses
(readOnly and writeOnly applies on to properties)
2020-02-17 12:17:44 +00:00

33 lines
576 B
Python

"""OpenAPI core schemas enums module"""
from enum import Enum
class SchemaType(Enum):
ANY = None
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'
UUID = 'uuid'
class UnmarshalContext(Enum):
REQUEST = 'request'
RESPONSE = 'response'