@@ -9,6 +9,10 @@ functions:
99 - IPA107UpdateMethodRequestBodyIsGetResponse
1010 - IPA107UpdateMethodRequestBodyIsUpdateRequestSuffixedObject
1111
12+ aliases :
13+ UpdateOperationObject :
14+ - ' $.paths[*][put,patch]'
15+
1216rules :
1317 xgen-IPA-107-update-must-not-have-query-params :
1418 description : >-
2226 - Operation objects with `x-xgen-IPA-exception` for this rule are excluded from validation
2327 message : ' {{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-107-update-must-not-have-query-params'
2428 severity : error
25- given : ' $.paths[*][put,patch] '
29+ given : ' #UpdateOperationObject '
2630 then :
2731 function : ' IPA107UpdateMethodMustNotHaveQueryParams'
2832 functionOptions :
3842 - Operation objects with `x-xgen-IPA-exception` for this rule are excluded from validation
3943 message : ' {{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-107-update-method-response-code-is-200'
4044 severity : error
41- given : ' $.paths[*][put,patch] '
45+ given : ' #UpdateOperationObject '
4246 then :
4347 function : ' IPA107UpdateResponseCodeShouldBe200OK'
4448 xgen-IPA-107-update-method-response-is-get-method-response :
5458 - Paths with `x-xgen-IPA-exception` for this rule are excluded from validation
5559 message : ' {{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-107-update-method-response-is-get-method-response'
5660 severity : error
57- given : ' $.paths[*][put,patch] .responses.200.content'
61+ given : ' #UpdateOperationObject .responses.200.content'
5862 then :
5963 field : ' @key'
6064 function : ' IPA107UpdateMethodResponseIsGetMethodResponse'
7074 - Fails if any readOnly properties are found in the request schema
7175 message : ' {{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-107-update-method-request-has-no-readonly-fields'
7276 severity : error
73- given : ' $.paths[*][put,patch] .requestBody.content'
77+ given : ' #UpdateOperationObject .requestBody.content'
7478 then :
7579 field : ' @key'
7680 function : ' IPA107UpdateMethodRequestHasNoReadonlyFields'
8892 - `oneOf` and `discriminator` definitions must match exactly.
8993 message : ' {{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-107-update-method-request-body-is-get-method-response:'
9094 severity : error
91- given : ' $.paths[*][put,patch] .requestBody.content'
95+ given : ' #UpdateOperationObject .requestBody.content'
9296 then :
9397 field : ' @key'
9498 function : ' IPA107UpdateMethodRequestBodyIsGetResponse'
@@ -104,7 +108,7 @@ rules:
104108 - Confirms the referenced schema name ends with "Request" suffix
105109 message : ' {{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-107-update-method-request-body-is-update-request-suffixed-object'
106110 severity : error
107- given : ' $.paths[*][put,patch] .requestBody.content'
111+ given : ' #UpdateOperationObject .requestBody.content'
108112 then :
109113 field : ' @key'
110114 function : ' IPA107UpdateMethodRequestBodyIsUpdateRequestSuffixedObject'
0 commit comments