Module aws_lambda_powertools.event_handler.openapi.compat
Functions
def copy_field_info(*, field_info: pydantic.fields.FieldInfo, annotation: Any) ‑> pydantic.fields.FieldInfo
def create_body_model(*, fields: Sequence[pydantic.fields.ModelField], model_name: str) ‑> Type[pydantic.main.BaseModel]
def field_annotation_is_complex(annotation: Optional[Type[Any]]) ‑> bool
def field_annotation_is_scalar(annotation: Any) ‑> bool
def field_annotation_is_scalar_sequence(annotation: Optional[Type[Any]]) ‑> bool
def field_annotation_is_sequence(annotation: Optional[Type[Any]]) ‑> bool
def get_compat_model_name_map(fields: List[pydantic.fields.ModelField]) ‑> Dict[Union[Type[pydantic.main.BaseModel], Type[enum.Enum]], str]
def get_definitions(*, fields: List[pydantic.fields.ModelField], schema_generator: GenerateJsonSchema, model_name_map: Dict[Union[Type[ForwardRef('BaseModel')], Type[enum.Enum]], str]) ‑> Tuple[Dict[Tuple[pydantic.fields.ModelField, Literal['validation', 'serialization']], Dict[str, Any]], Dict[str, Dict[str, Any]]]
def get_missing_field_error(loc: Tuple[str, ...]) ‑> Dict[str, Any]
def get_model_definitions(*, flat_models: Set[Union[Type[pydantic.main.BaseModel], Type[enum.Enum]]], model_name_map: Dict[Union[Type[ForwardRef('BaseModel')], Type[enum.Enum]], str]) ‑> Dict[str, Any]
def get_schema_from_model_field(*, field: pydantic.fields.ModelField, model_name_map: Dict[Union[Type[ForwardRef('BaseModel')], Type[enum.Enum]], str], field_mapping: Dict[Tuple[pydantic.fields.ModelField, Literal['validation', 'serialization']], Dict[str, Any]]) ‑> Dict[str, Any]
def is_bytes_field(field: pydantic.fields.ModelField) ‑> bool
def is_bytes_or_nonable_bytes_annotation(annotation: Any) ‑> bool
def is_bytes_sequence_annotation(annotation: Any) ‑> bool
def is_bytes_sequence_field(field: pydantic.fields.ModelField) ‑> bool
def is_pv1_scalar_field(field: pydantic.fields.ModelField) ‑> bool
def is_pv1_scalar_sequence_field(field: pydantic.fields.ModelField) ‑> bool
def is_scalar_field(field: pydantic.fields.ModelField) ‑> bool
def is_scalar_sequence_field(field: pydantic.fields.ModelField) ‑> bool
def is_sequence_field(field: pydantic.fields.ModelField) ‑> bool
def model_json(model: pydantic.main.BaseModel, **kwargs: Any) ‑> Any
def model_rebuild(model: Type[pydantic.main.BaseModel]) ‑> None
def serialize_sequence_value(*, field: pydantic.fields.ModelField, value: Any) ‑> Sequence[Any]
def value_is_sequence(value: Any) ‑> bool
Classes
class GenerateJsonSchema (ref_template: str)
-
GenerateJsonSchema(ref_template: str)
Expand source code
@dataclass class GenerateJsonSchema: ref_template: str
Class variables
var ref_template : str