July 2024
Intermediate to advanced
400 pages
11h 57m
English
This appendix introduces JSON Pointer, and you can work through the examples here using the project repository you cloned in appendix B. Navigate to the appendix folder in the project to find the products-api.json file you need for this.
Spectral uses the JSON Pointer syntax to specify the part of a JSON document to apply an override to. JSON Pointer is a syntax for locating a value within a JSON document, and the specification is defined in RFC6901. The syntax is a string of zero or more tokens prefixed by the “/” character. You can see this in action by evaluating JSON Pointer expressions on a JSON document. To do this, install json-joy (https://github.com/streamich/json-joy), which gives you a json-pointer ...
Read now
Unlock full access