from datetime import date, datetime class ApispecTypes: """ Base data types to be used with fields.Method and fields.Function as example to be represented in swagger documentation. ex: some_integer_value = fields.Method("some_method", example=ApispecTypes.INTEGER) some_boolean_value = fields.Function("some_method", example=ApispecTypes.BOOLEAN) swagger repr: { "some_integer_value": "0", "some_boolean_value": "true" } """ INTEGER = "0" BOOLEAN = "true" DATE = date.today().isoformat() DATETIME = datetime.today().isoformat() DICT = {"key": "value"}