Searching for a javascript library to validate JSON against OpenAPI schema

Viewed 322

I am searching for a JS library (ideally usable in the browser) to:

  1. check a particular JSON payload (typically a response from an API) against an OpenAPI 3.0 schema (YAML or JSON)
  2. ideally decorate that JSON payload with information extracted from the OpenAPI 3.0 schema (eg. documentation information)
    • alternatively allow callbacks to external handling functions for each error / match in the validation step
1 Answers
Related