Skip to content

Commit 6ba5e3b

Browse files
Merge remote-tracking branch 'origin/CLOUDP-304053/fix' into CLOUDP-304053/fix
2 parents 5a98e13 + 84f0579 commit 6ba5e3b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/spectral/ipa/rulesets/IPA-106.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ rules:
2323
then:
2424
function: 'createMethodShouldNotHaveQueryParameters'
2525
xgen-IPA-106-create-method-request-body-is-get-method-response:
26-
description: 'The Create method request should be a Get method response. http://go/ipa/106'
26+
description: 'Request body content of the Create method and response content of the Get method should refer to the same resource.
27+
readOnly/writeOnly properties will be ignored. http://go/ipa/106'
2728
message: '{{error}} http://go/ipa/106'
2829
severity: warn
2930
given: '$.paths[*].post.requestBody.content'
3031
then:
3132
field: '@key'
3233
function: 'createMethodRequestBodyIsGetResponse'
34+
functionOptions:
35+
ignoredValues: ['readOnly', 'writeOnly']

0 commit comments

Comments
 (0)