Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is a write up to demonstrate how we can validate any given JSON payload against a well defined schema corresponding to it.

Idea here is to see if we can run this application against an identified question payload with its corresponding JSON schema.

This will help us uncover the current deviations and can become as a repeatable test to see if the sample payload adhere to the specification.

A video recording of the test carried out is embedded here.

validating_against_spec_recording_1.mkvvalidating_against_spec_recording_2.mkv

Sample code used for test is here

https://github.com/sajeshkayyath/json-validator-prev-leadpony

Observation

  • There are deviations from the QuML (v1) specification in the inQuiry

  • Corrective action to fix the existing payload needs to be taken and re-validated against the specification.

  • Assuming similar deviations may be there from other adopters as well.