Skip to content

US1088151: Update policy-code-schema.json with all 244 Gateway assertions#141

Open
Sra1-Layer7 wants to merge 3 commits intoLayer7-Community:mainfrom
Sra1-Layer7:feature/US1088151_update_jsonschema_all_assertions_fork
Open

US1088151: Update policy-code-schema.json with all 244 Gateway assertions#141
Sra1-Layer7 wants to merge 3 commits intoLayer7-Community:mainfrom
Sra1-Layer7:feature/US1088151_update_jsonschema_all_assertions_fork

Conversation

@Sra1-Layer7
Copy link

US1088151: Update policy-code-schema.json with all 244 Gateway assertions

Expand the policy-as-code JSON schema from 7 assertions to 244,
covering 99.2% of all assertions registered in an 11.2 Gateway.

Sources:

145 assertions from PM2-UI configSchemas (metadata.json)
51 hand-crafted schemas for core/structural assertions
48 assertions enriched from Gateway assertionsMetadata GraphQL API
Validated with 3 test suites (351 tests, 0 failures):

AJV 2020 strict-mode compilation (matches graphman-client validator)
101 structural tests (types, enums, defaults, uniqueness)
250 live Gateway tests (runtime comparison, real policy bundles,
per-assertion samples, 875 negative tests)

@burbanski burbanski requested review from burbanski and graju256 and removed request for burbanski March 4, 2026 15:53
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.

1 participant