Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 2.38 KB

File metadata and controls

46 lines (39 loc) · 2.38 KB

Zebra

petstore_api.components.schema.zebra

type: schemas.Schema

validate method

Input Type Return Type Notes
ZebraDictInput, ZebraDict ZebraDict

ZebraDictInput

type: typing.Mapping[str, schemas.INPUT_TYPES_ALL]
Key Type Description Notes
className typing.Literal["zebra"] must be one of ["zebra"]
type typing.Literal["plains", "mountain", "grevys"] [optional] must be one of ["plains", "mountain", "grevys"]
any_string_name dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader any string name can be used but the value must be the correct type [optional]

ZebraDict

base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

__new__ method

Keyword Argument Type Description Notes
className typing.Literal["zebra"] must be one of ["zebra"]
type typing.Literal["plains", "mountain", "grevys"], schemas.Unset [optional] must be one of ["plains", "mountain", "grevys"]
kwargs dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader any string name can be used but the value must be the correct type [optional] typed value is accessed with the get_additional_property_ method

properties

Property Type Description Notes
className typing.Literal["zebra"] must be one of ["zebra"]
type typing.Literal["plains", "mountain", "grevys"], schemas.Unset [optional] must be one of ["plains", "mountain", "grevys"]

methods

Method Input Type Return Type Notes
from_dict_ ZebraDictInput, ZebraDict ZebraDict a constructor
get_additional_property_ str schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset provides type safety for additional properties

[Back to top] [Back to Component Schemas] [Back to README]