← 返回卡片

原书出处

Automating API Delivery APIOps with OpenAPI

03 API Lint 与设计一致性 3.9 Overriding API linting rules

核验版本的摘录快照 · 导入于 2026-11-24T09:39:53.480Z

The way Spectral does this is called overrides. Spectral overrides allow you to customize the same ruleset for different projects or OpenAPI documents. Overrides specify the OpenAPI documents and object to be overridden (using an override reference made up of a file path glob and a JSON pointer) and the rule name to switch whose severity should be modified, as illustrated in figure 3.5.

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-3.xhtml#p122

EPUB SHA-256:73b94e6cdce95a5b45154bc48c68151659ddf69ec246d4fad79dc89db000857e