Ask a Question

Swagger Compliance Assertion to check response

aaronpliu
Frequent Contributor

Swagger Compliance Assertion to check response

Dears,

 

One question for "Swagger Compliance Assertion" to check schema, I'd like to validate response in yaml file (Swagger) with strick mode, It seems cannot check case-sensitive node name.

Here is an example (Actual response is complex with multiple nested structure)

in yaml file:

 

Response:
      type: object
      properties:
        Result:
          type: integer
          example: 0

 

response:

 

{
   "result" : 0
}

 

 As some of properties changed, is there any way to monitor what change is?

 

in development team, back-end update their returned response, but did not release new API version (yaml), then front-end cannot parse changed response. in API test, it should be detected all of these changes and update them to development team, then front-end / back-end can align again which change will be impacted.

 

 

 

Thanks,

/Aaron

 

cancel
Showing results for 
Search instead for 
Did you mean: