Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Latest commit

 

History

History
43 lines (36 loc) · 1.35 KB

File metadata and controls

43 lines (36 loc) · 1.35 KB

Money

petstore_api.components.schema.money

type: schemas.Schema

validate method

Input Type Return Type Notes
MoneyDictInput, MoneyDict MoneyDict

MoneyDictInput

type: typing.TypedDict
Key Type Description Notes
amount str value must be int or float numeric
currency typing.Literal["eur", "usd"]

MoneyDict

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

__new__ method

Keyword Argument Type Description Notes
amount str value must be int or float numeric
currency typing.Literal["eur", "usd"]

properties

Property Type Description Notes
amount str value must be int or float numeric
currency typing.Literal["eur", "usd"]

methods

Method Input Type Return Type Notes
from_dict_ MoneyDictInput, MoneyDict MoneyDict a constructor

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