Skip to content

#23 Add an optional policy metadata section - #39

Merged
jzonthemtn merged 1 commit into
mainfrom
23-policy-metadata
Sep 2, 2026
Merged

#23 Add an optional policy metadata section#39
jzonthemtn merged 1 commit into
mainfrom
23-policy-metadata

Conversation

@jzonthemtn

Copy link
Copy Markdown
Member

Closes #23.

  • Schema 1.3.0 gains an optional top-level metadata object. description is typed; additional keys are allowed so it can grow without a breaking change. The policy root stays strict.
  • DESCRIPTION '<text>' now compiles to metadata.description instead of only being returned on CompileResult, so a description travels with the policy. All three references emit it; CompileResult.description is unchanged.
  • New optional catalog field phileas_strategies_field_aliases, so an engine still reads a strategies array's earlier name. ZIP_CODE uses it for zipCodeFilterStrategy, which schema 1.3.0 renamed. validate_spec.py checks each alias exists in the schema.

Verified: validate_spec.py passes; conformance 130/130 on the Java, Python and .NET references; reference suites 106 / 256 / 237.

Adds an optional metadata object to schema 1.3.0, compiles the DESCRIPTION
clause into metadata.description, and adds catalog-level aliases so a renamed
strategies field keeps reading its earlier name.

Signed-off-by: jzonthemtn <jeff.zemerick@philterd.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an optional policy 'metadata' section (description, etc.) to the spec/schema

1 participant