Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Is V3 supported #516

Closed
leonid-deriv opened this issue Mar 18, 2024 · 6 comments
Closed

[Question]: Is V3 supported #516

leonid-deriv opened this issue Mar 18, 2024 · 6 comments

Comments

@leonid-deriv
Copy link

Got this when try to create a document for v3

asyncapi generate fromTemplate passkeys/api.yaml  @asyncapi/[email protected] --force-write
(node:45518) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Diagnostic err: Version "3.0.0" is not supported. Please use "2.6.0" (latest) version of the specification. in path [] starting L1 C0, ending L172 C43
Diagnostic err: Unknown schema format: "application/vnd.aai.asyncapi;version=3.0.0" in path ["components","messages","getOptions"] starting L68 C15, ending L77 C47
Diagnostic err: Cannot validate and parse given schema due to unknown schema format: "application/vnd.aai.asyncapi;version=3.0.0" in path ["components","messages","getOptions","payload"] starting L76 C14, ending L77 C47
Diagnostic err: Unknown schema format: "application/vnd.aai.asyncapi;version=3.0.0" in path ["components","messages","optionsResponse"] starting L78 C20, ending L85 C74
Diagnostic err: Cannot validate and parse given schema due to unknown schema format: "application/vnd.aai.asyncapi;version=3.0.0" in path ["components","messages","optionsResponse","payload"] starting L84 C14, ending L85 C74
Generation in progress. Keep calm and wait a bit... done

Generator Error: Input is not a correct AsyncAPI document so it cannot be processed
Copy link

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@hkaiser25
Copy link

I'm also getting this error. A little puzzling that v3 isn't supported since it's an official release and is featured on the https://www.asyncapi.com/ site.

@jonaslagoni
Copy link
Member

Have you tried with v1.5 of the template?

@leonid-deriv
Copy link
Author

leonid-deriv commented Mar 22, 2024

It works when you do not state the template version. I will close this issue

@hkaiser25
Copy link

hkaiser25 commented Apr 23, 2024

I'm still not able to get it to work. What do you mean by not stating the template version?

@leonid-deriv
Copy link
Author

I mean I just set use template without version - like this

asyncapi generate fromTemplate passkeys/api.yaml @asyncapi/markdown-template --force-write

and we are using React component now to render the spec on our site - this is a simpler solution. I do not have the link at hand but you can google it and find it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants