Look into using ajv to assess validating output with a desired schema.
Look into using ajv to assess validating output with a desired schema.