Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 2.96 KB

object_with_invalid_named_refed_properties.md

File metadata and controls

39 lines (33 loc) · 2.96 KB

ObjectWithInvalidNamedRefedProperties

petstore_api.components.schema.object_with_invalid_named_refed_properties

type: schemas.Schema

validate method

Input Type Return Type Notes
ObjectWithInvalidNamedRefedPropertiesDictInput, ObjectWithInvalidNamedRefedPropertiesDict ObjectWithInvalidNamedRefedPropertiesDict

ObjectWithInvalidNamedRefedPropertiesDictInput

type: typing.Mapping[str, schemas.INPUT_TYPES_ALL]
Key Type Description Notes
!reference array_with_validations_in_items.ArrayWithValidationsInItemsTupleInput, array_with_validations_in_items.ArrayWithValidationsInItemsTuple
from from_schema.FromSchemaDictInput, from_schema.FromSchemaDict
any_string_name dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO any string name can be used but the value must be the correct type [optional]

ObjectWithInvalidNamedRefedPropertiesDict

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

__new__ method

Keyword Argument Type Description Notes
kwargs schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO 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

methods

Method Input Type Return Type Notes
from_dict_ ObjectWithInvalidNamedRefedPropertiesDictInput, ObjectWithInvalidNamedRefedPropertiesDict ObjectWithInvalidNamedRefedPropertiesDict a constructor
__getitem__ str schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO This model has invalid python names so this method is used under the hood when you access instance["!reference"], instance["from"],
get_additional_property_ str schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset provides type safety for additional properties

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