← 返回卡片

原书出处

Automating API Delivery APIOps with OpenAPI

03 API Lint 与设计一致性 3.4 Running Spectral to check for compliance

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

You can see that the problem output starts with a line and column number (41:30), a problem severity (error), the name of the rule in the ruleset file that was violated (response-content-type), the output message associated with the rule (All JSON:API response bodies MUST be returned . . .), and finally the location in the API definition file that has the problem (paths./v1/catalog/categories.get.responses[200].content.application/json).

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

原书定位详情

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

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

EPUB SHA-256:73b94e6cdce95a5b45154bc48c68151659ddf69ec246d4fad79dc89db000857e