Skip to content

Publish and validate a JSON schema for policy configuration #198

Description

@pilipilisbot

Context

policy.py validates many fields at load time, but there is no standalone policy.schema.json. A schema would make operator config safer and easier to edit before service startup.

Proposal

Add a JSON Schema for policy.json and a validation command such as gab validate-policy.

Acceptance criteria

  • Repository includes policy.schema.json or an equivalent generated schema artifact.
  • gab validate-policy --policy path reports unknown fields and invalid values clearly.
  • Documentation references the schema and validation command.
  • Tests cover valid and invalid policy examples.

Priority

Low.

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions