I’m writing a rule to check that our APIs adhere to our naming guidelines. Checking the parameters for the request is easy because they have a “name” property! However I’m not sure how to access the names of the response fields since these are keys inside the components.schemas.*.properties and the fieldname I need is the key of the entry.
The field I want is this: https://github.com/Nexmo/api-specification/blob/master/definitions/verify.yml#L520
I’ve considered going up a level and getting all the objects and iterating, but then how can I return the error information for each field? Advice gratefully received!