Skip to content

Safe Get in async validation #475

Closed
Closed
@victai

Description

@victai

The issue is same in described in #400
The safe_get function is applied to validate_dependents, but not applied to async validate_dependents.

Fix

Change line 250 in guardrails/validator_service.py from

child_value = value[child_setup.key]

to

child_value = safe_get(value, child_setup.key)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions