json ¶
JSON configuration file generator.
Generates JSON configuration files from Pydantic settings models.
Classes:
-
JsonGeneratorSettings–Configuration for JSON generator.
-
JsonGenerator–Generate JSON configuration files.
Classes¶
JsonGeneratorSettings pydantic-model ¶
Bases: BaseModel
Configuration for JSON generator.
Show JSON schema:
JSON
{
"description": "Configuration for JSON generator.\n\nGenerator name: `json`.",
"properties": {
"paths": {
"description": "Output file paths",
"items": {
"format": "path",
"type": "string"
},
"title": "Paths",
"type": "array"
},
"indent": {
"default": 2,
"description": "JSON indentation spaces",
"title": "Indent",
"type": "integer"
}
},
"title": "JsonGeneratorSettings",
"type": "object"
}
Fields:
JsonGenerator ¶
Bases: AbstractGenerator
Generate JSON configuration files.
Methods:
-
generate_single–Generate JSON format configuration.