feat: add complete config-converter-cli implementation
Some checks failed
CI / test (push) Has been cancelled

- Add all source files and tests
- Fix CI linting and type checking issues
- Ensure code passes ruff and mypy checks
This commit is contained in:
2026-02-04 22:16:31 +00:00
parent 0148c779c4
commit b7639a1e49

View File

@@ -231,7 +231,7 @@ class SchemaValidator:
if prop.name in value:
prop_value = value[prop.name]
prop_props: List[SchemaProperty] = prop.properties if prop.properties else []
prop_schema = InferredSchema(root_type=prop.type, properties=prop_props) # type: ignore[arg-type]
prop_schema = InferredSchema(root_type=prop.type, properties=prop_props)
self._validate_value(prop_value, prop_schema, prop_path, errors)
elif prop.required:
errors.append(f"{prop_path}: required property missing")
@@ -242,7 +242,7 @@ class SchemaValidator:
return False
if isinstance(value, list) and schema.items:
item_props: List[SchemaProperty] = schema.items.properties if schema.items.properties else []
item_schema = InferredSchema(root_type=schema.items.type, properties=item_props) # type: ignore[arg-type]
item_schema = InferredSchema(root_type=schema.items.type, properties=item_props)
for i, item in enumerate(value):
self._validate_value(item, item_schema, f"{path}[{i}]", errors)