OpenApiGeneratorModel#
- class documenteer.conf._toml.OpenApiGeneratorModel(**data)#
- Bases: - BaseModel- Specification for the OpenAPI generator function used by the - documenteer.ext.openapiSphinx extension.- Parameters:
- data ( - Any) –
 - Attributes Summary - A dictionary of computed field names and their corresponding - ComputedFieldInfoobjects.- Configuration for the model, should be a dictionary conforming to [ - ConfigDict][pydantic.config.ConfigDict].- Metadata about the fields defined on the model, mapping of field names to [ - FieldInfo][pydantic.fields.FieldInfo].- Attributes Documentation - model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#
- A dictionary of computed field names and their corresponding - ComputedFieldInfoobjects.
 - model_config: ClassVar[ConfigDict] = {}#
- Configuration for the model, should be a dictionary conforming to [ - ConfigDict][pydantic.config.ConfigDict].
 - model_fields: ClassVar[dict[str, FieldInfo]] = {'function': FieldInfo(annotation=str, required=True, description='The Python function that generates the OpenAPI spec file. It must have the form ``module:func``. The function must return a JSON-serialized string.'), 'keyword_args': FieldInfo(annotation=Dict[str, Any], required=False, default_factory=dict, description='Keyword arguments to pass to the generator function.'), 'positional_args': FieldInfo(annotation=List[Any], required=False, default_factory=list, description='Positional arguments to pass to the generator function.')}#
- Metadata about the fields defined on the model, mapping of field names to [ - FieldInfo][pydantic.fields.FieldInfo].- This replaces - Model.__fields__from Pydantic V1.