inconsistent JSON-based schema validation results for actions #1471
Labels
bug
Something isn't working. This is as high priority issue.
pending-triage
The cedar maintainers haven't looked at this yet. Automicaly added to all new issues.
Before opening, please confirm:
Bug Category
Schemas and Validation
Describe the bug
Both the cedar cli
evaluate
command andcedar_policy_validator::ValidatorSchema
have a regression compared to 3.x behavior when validatingactions
in a JSON-based schemaFor the schema below, Cedar 3.x would validate with
but Cedar 4.x has one of these
help
messages for theSchemaError
:Expected behavior
Either return both errors with provide a consistent (deterministic) output
Reproduction steps
actions.cedarschema.json
cedar evaluate -s actions.cedarschema.json --schema-format json -l 'Test::"1"' -a 'Action::"doTests"' -r 'Test::"1"' true
Code Snippet
Cedar schema in JSON format
Log output
CLI output from 4.3.2 compared with 3.4.1
Additional configuration
No response
Operating System
MacOS
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: