executorlib.standalone.validate.validate_resource_dict_with_optional_keys#
- executorlib.standalone.validate.validate_resource_dict_with_optional_keys(resource_dict: dict) None[source]#
Validate a resource dictionary, allowing unknown keys with a warning instead of an error.
Known keys are validated against ResourceDictValidation. Unknown keys are collected and emitted as a UserWarning so callers can detect unsupported options without hard failure.
- Parameters:
resource_dict (dict) – Dictionary of resource requirements to validate.
- Raises:
ValidationError – If any known key/value pair violates the ResourceDictValidation schema.