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

ParserJS: validate document only with the AsyncAPI v3 JSON Schema #817

Closed
Tracked by #742
Amzani opened this issue Jul 25, 2023 · 5 comments
Closed
Tracked by #742

ParserJS: validate document only with the AsyncAPI v3 JSON Schema #817

Amzani opened this issue Jul 25, 2023 · 5 comments
Labels
enhancement New feature or request stale

Comments

@Amzani
Copy link

Amzani commented Jul 25, 2023

Reason/Context

We need a working version of ParseJS that we can use both in the CLI and Studio to validate Async 3.0 documents.

import { Parser } from '@asyncapi/parser' // using 2.1.0-next-major-spec.1

const parser = new Parser()

const documentRaw = {
    asyncapi: '3.0.0',
    info: {
      title: 'Invalid AsyncApi document',
      version: '1.0',
    }
}

const { document, diagnostics } = await parser.parse(documentRaw)
console.log(document, diagnostics)

Current output

=> current output
undefined [
  {
    code: 'asyncapi-is-asyncapi',
    message: 'Version "3.0.0" is not supported. Please use "2.6.0" (latest) version of the specification.',
    path: [],
    severity: 0,
    range: { start: [Object], end: [Object] }
  }
] 

What triggered this issue

https://asyncapi.slack.com/archives/C0230UAM6R3/p1690292367285459

Out of scope

  • Spectral rules are out of scope, we only focus on the validation

Solution

(From @magicmatatjahu, some more details might be missing)

Related to asyncapi/studio#742

@Amzani Amzani added the enhancement New feature or request label Jul 25, 2023
@github-actions
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.

@smoya
Copy link
Member

smoya commented Aug 2, 2023

/progress 70 Mainly working, but blocked by asyncapi/studio#742

@smoya
Copy link
Member

smoya commented Aug 10, 2023

/progress 85 Working on the following fix #838

@smoya
Copy link
Member

smoya commented Aug 11, 2023

/progress 90 All the features and bugfixes are ready in next-major-spec

Copy link

This issue has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions bot added the stale label Dec 10, 2023
@smoya smoya closed this as completed Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

2 participants