Policy-definition advanced parameter annotation + static check + UI grouping #1117
Tharsanan1
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Policy-definition advanced parameter annotation + static check + UI grouping
Context
We discussed improving how policy parameters are shown in Basic Settings vs Advanced Settings, and adding static validation to prevent invalid advanced-required configurations.
Proposed annotations
At root property level under
parameters.properties:x-wso2-policy-advanced-param:true|falsefalse.For config-linked defaults:
wso2/defaultValuetox-wso2-policy-default-config.x-wso2-policy-default-configwill be the standard key going forward.Proposed behavior
parameters.propertiesis markedx-wso2-policy-advanced-param: trueand is required, it must have a JSON Schemadefault.defaultis missing, static check fails.required: [...]anyOf/allOf/if-then.x-wso2-policy-advanced-paramisfalse, orx-wso2-policy-advanced-paramistrue.Scope for this discussion
wso2/defaultValue->x-wso2-policy-default-configAcceptance criteria
x-wso2-policy-advanced-paramandx-wso2-policy-default-configare recognized by policy-definition validation/static-check logic.x-wso2-policy-default-configis documented as the replacement forwso2/defaultValue.parametershas no JSON Schemadefault.Example
Beta Was this translation helpful? Give feedback.
All reactions