原书出处
Automating API Delivery APIOps with OpenAPI
03 API Lint 与设计一致性 3.7 Creating a Spectral rule for path versioning
To create your new Spectral rule, the given property should be a JSONPath expression that selects all the URI paths in the API definition, but this isn’t possible with basic JSONPath expressions. To overcome this, Spectral supports an extended set of JSONPath expressions called JSONPath Plus. The JSONPath Plus expression you need to retrieve all the paths in your document is $.paths[*]~. You can find out more about JSONPath Plus expressions at https://github.com/JSONPath-Plus/JSONPath.
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-3.xhtml#p80
EPUB SHA-256:73b94e6cdce95a5b45154bc48c68151659ddf69ec246d4fad79dc89db000857e