JSON Schema Validator
We use json for API responses, and the task is to validate the response schema with previous release to find regression if any.
So there was a bug in the system where a json was responding as below
{
data: [
20,30,0,0,0,0,0]
}
instead of
{
data: [...
cloudqa.hashnode.dev2 min read
Siddartha
Learn.. perform.. learn.. perform..
Why to use global keywork in definition? As assignment considers variable as local to scope, we need to use global keywork to specify explicitly to use the external variable.
docs.python.org/3/faq/programming.html