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
{{ message }}
Repository navigation
AsyncAPI spec silently fails to load when spec produces info/warning diagnostics (e.g. AsyncAPI 3.0.0) #7140
Support for AsyncAPIs (3.0.0) are not working with either npx mint validate or npx mint dev, when an AsyncAPI returns a trivial warning. It always fails with the error
AsyncAPI file X defined in tab in your docs.json does not exist
even when the file exists and is valid.
Root cause: validateAsyncApi.js L19:26 in @mintlify/common treats any diagnostic as a hard failure:
if(diagnostics.length>0){// blocks on severity 2 (info) tooreturn{valid: false,errorMessage: errorMessages,document: undefined,};}
AsyncAPI 3.0.0 triggers the asyncapi-latest-version info rule (severity 2), causing the document to be silently dropped. The file never reaches asyncApiFiles[], so the lookup in generateAsyncApiFromDocsConfig fails.
More precisely, the error message from the Parser from @asyncapi/parser reads:
"The latest version of AsyncAPi is not used. It is recommended update to the \"3.1.0\" version."
Activity