user_workspaces_server.config_schemas package
Submodules
user_workspaces_server.config_schemas.json_schema_loader module
JSON Schema loader for configuration validation.
This module loads JSON Schema files for validation and documentation generation.
- class user_workspaces_server.config_schemas.json_schema_loader.JSONSchemaWrapper(schema, file_path)[source]
Bases:
objectWrapper around a JSON Schema providing convenient access methods.
- class user_workspaces_server.config_schemas.json_schema_loader.JSONSchemaLoader(schemas_dir=None)[source]
Bases:
objectLoads and manages JSON Schema files.
- __init__(schemas_dir=None)[source]
Initialize the JSON Schema loader.
- Parameters:
schemas_dir (
str) – Path to directory containing JSON schemas. Defaults to schemas/ subdirectory of this module.
- get_schema(category, controller_name)[source]
Get a schema by category and controller name.
- Parameters:
- Return type:
- Returns:
JSONSchemaWrapper object or None if not found
- get_all_schemas()[source]
Get all loaded schemas organized by category.
- Return type:
Dict[str,Dict[str,JSONSchemaWrapper]]
- get_resource_schema(controller_name)[source]
Get a resource schema by controller name.
- Return type:
- get_authentication_schema(controller_name)[source]
Get an authentication schema by controller name.
- Return type:
user_workspaces_server.config_schemas.json_schema_validator module
Configuration validation using JSON Schema.
This module provides validation logic for configuration files using JSON Schema definitions.
- exception user_workspaces_server.config_schemas.json_schema_validator.ValidationError(errors)[source]
Bases:
ExceptionException raised when configuration validation fails.
- class user_workspaces_server.config_schemas.json_schema_validator.JSONSchemaConfigValidator[source]
Bases:
objectValidates configuration dictionaries against JSON schemas.
- validate_with_schema(config, schema_dict, path='')[source]
Validate a configuration dictionary against a JSON schema.
Module contents
Configuration schema definitions and validation for User Workspaces Server.
This module provides a JSON Schema-based system for validating configuration files (config.json) at startup time.
- class user_workspaces_server.config_schemas.JSONSchemaWrapper(schema, file_path)[source]
Bases:
objectWrapper around a JSON Schema providing convenient access methods.
- class user_workspaces_server.config_schemas.JSONSchemaLoader(schemas_dir=None)[source]
Bases:
objectLoads and manages JSON Schema files.
- __init__(schemas_dir=None)[source]
Initialize the JSON Schema loader.
- Parameters:
schemas_dir (
str) – Path to directory containing JSON schemas. Defaults to schemas/ subdirectory of this module.
- get_schema(category, controller_name)[source]
Get a schema by category and controller name.
- Parameters:
- Return type:
- Returns:
JSONSchemaWrapper object or None if not found
- get_all_schemas()[source]
Get all loaded schemas organized by category.
- Return type:
Dict[str,Dict[str,JSONSchemaWrapper]]
- get_resource_schema(controller_name)[source]
Get a resource schema by controller name.
- Return type:
- get_authentication_schema(controller_name)[source]
Get an authentication schema by controller name.
- Return type:
- class user_workspaces_server.config_schemas.JSONSchemaConfigValidator[source]
Bases:
objectValidates configuration dictionaries against JSON schemas.
- validate_with_schema(config, schema_dict, path='')[source]
Validate a configuration dictionary against a JSON schema.