I want to test an external DTO that changes frequently.
ex:
I has a below javascript(json) file.
// javascript
const type User = {
id: Number,
name: String
}
// json
user: {
id: Number,
name: String,
}
At this time, the external API response changed.
// ex1) response (Add)
{
id: Number,
name: String,
age: Number
}
// ex2) response (remove)
{
id: Number
}
// and so on.
I want to get a failure result and change javascript file.
In this case, How do I test external DTO?
In other words, I hope to check for changed properties.