File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,18 @@ rules:
144144 - required : ["examples"]
145145 - required : ["schema"]
146146
147+ x-xgen-hidden-env-format :
148+ description : " Ensure x-xgen-hidden-env extension has the correct format. https://go/openapi-hidden-extension"
149+ severity : error
150+ given : " $..x-xgen-hidden-env" # Match anywhere in the document
151+ then :
152+ - field : envs
153+ function : truthy
154+ - field : envs
155+ function : pattern
156+ functionOptions :
157+ match : " ^(dev|qa|stage|prod)(,(dev|qa|stage|prod))*$"
158+
147159overrides :
148160 - files : # load sample data has an issue with different path param names for different VERBS
149161 - " *.yaml#/paths/~1api~1atlas~1v1.0~1groups~1%7BgroupId%7D~1sampleDatasetLoad~1%7BsampleDatasetId%7D"
You can’t perform that action at this time.
0 commit comments