mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-25 11:09:53 +00:00
27 lines
461 B
Python
27 lines
461 B
Python
|
"""OpenAPI core schemas enums module"""
|
||
|
from enum import Enum
|
||
|
|
||
|
|
||
|
class SchemaType(Enum):
|
||
|
|
||
|
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'
|