Skip to content

Validate a policy against the redaction policy schema when it is loaded #80

Description

@jzonthemtn

Policy.from_dict accepts any dict, and nothing validates it against the schema phisql ships (jsonschema is a dev-only dependency). A policy with an unknown or misspelled key loads and silently stops redacting.

Acceptance Criteria

  • Loading a policy validates it against the packaged schema and reports failures.
  • Validation is opt-out for callers loading a policy written for an older schema version.
  • A test asserts a policy with an unknown key is reported rather than silently accepted.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestphisqlCloses a gap against the PhiSQL specification

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions