You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"no-file-extensions-in-paths": {
message:
"Paths must not include file extensions such as .json, .xml, .html and .txt.",
description:
"Paths must not include file extensions such as `.json`, `.xml`, `.html` and `.txt`. Use the OpenAPI `content` keyword to tell consumers which Media Types are available.",
given: "$.paths[*]~",
then: {
function: pattern,
functionOptions: {
notMatch: ".(json|xml|html|txt)$",
},
},
severity: DiagnosticSeverity.Error,
},
The text was updated successfully, but these errors were encountered:
Should the "." in
be escaped as
\.
vs
The text was updated successfully, but these errors were encountered: