ModelDataInputSchema¶
- class openapi_client.models.model_data_input_schema.ModelDataInputSchema(*args, **kwargs)[source]¶
Bases:
BaseModel- oneof_schema_1_validator: Optional[List[ModelDataInputSchemaOneOfInner]]¶
- oneof_schema_2_validator: Optional[StrictStr]¶
- actual_instance: Optional[Union[List[ModelDataInputSchemaOneOfInner], str]]¶
- one_of_schemas: Set[str]¶
- model_config: ClassVar[ConfigDict] = {'protected_namespaces': (), 'validate_assignment': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- __init__(*args, **kwargs)[source]¶
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.
- classmethod from_json(json_str)[source]¶
Returns the object represented by the json string
- Return type:
Self
- model_fields: ClassVar[dict[str, FieldInfo]] = {'actual_instance': FieldInfo(annotation=Union[List[ModelDataInputSchemaOneOfInner], str, NoneType], required=False), 'one_of_schemas': FieldInfo(annotation=Set[str], required=False, default={'str', 'List[ModelDataInputSchemaOneOfInner]'}), 'oneof_schema_1_validator': FieldInfo(annotation=Union[List[ModelDataInputSchemaOneOfInner], NoneType], required=False), 'oneof_schema_2_validator': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- to_dict()[source]¶
Returns the dict representation of the actual instance
- Return type:
Union[Dict[str,Any],List[ModelDataInputSchemaOneOfInner],str,None]