JSPM

  • Created
  • Published
  • Downloads 1005
  • Score
    100M100P100Q127081F
  • License Apache-2.0

Evaluate JSONPath expressions against ApiDOM.

Package Exports

  • @speclynx/apidom-json-path

Readme

@speclynx/apidom-json-path

apidom-json-path is a package that evaluates JSONPath expressions against ApiDOM.

Installation

You can install this package via npm CLI by running the following command:

 $ npm install @speclynx/apidom-json-path

The API of this package is fully compliant with RFC 9535 and supports all aspects of JSONPath. Uses @swaggerexpert/jsonpath under the hood and fully reflects its API.

Evaluation is contextual to ApiDOM realm (ApiDOMEvaluationRealm) - meaning evaluate function expects only ApiDOM as the first argument.

import { evaluate, ApiDOMEvaluationRealm } from '@speclynx/apidom-json-path';