US1088151: Update policy-code-schema.json with all 244 Gateway assertions#141
Open
Sra1-Layer7 wants to merge 3 commits intoLayer7-Community:mainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)