Skip to content
RED SAG Skills
mediumStudy question · answer published in API Testing interview questions, so no pointsapi-testingcontract-testingschema-validation

Null field or no field

The spec says "discount" is optional. Sometimes the API returns "discount": null and sometimes leaves it out. Why should the contract say which?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions