Closed vittoriom closed 10 years ago
This can also be read as : define an inline response validator based on a convenience class "RNFBasicResponseValidator" that accepts an array with the defined success HTTP status codes. Maybe also add a "RNFYesResponseValidator" that always returns YES.
There will be no merge between the endpoint and the operation validators. Response validation should be specified at the endpoint level if status-code based. If for a specific operation the responseValidator is overridden, the latter will be used without querying the endpoint one.
The parameter can also be specified at the endpoint level, and in case the values will be merged, with the operation having priority. Values can be specified as single HTTP codes:
success : 200
or as rangessuccess : 200-300
or as multiple valuessuccess: 200,202-205