File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed 
tools/spectral/ipa/rulesets Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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'] 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments