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

Add a rule to validate unresolved AsyncAPI document #2261

Open
Tracked by #2100
magicmatatjahu opened this issue Aug 29, 2022 · 0 comments
Open
Tracked by #2100

Add a rule to validate unresolved AsyncAPI document #2261

magicmatatjahu opened this issue Aug 29, 2022 · 0 comments
Labels
AsyncAPI Issues related to the AsyncAPI ruleset chore enhancement New feature or request triaged

Comments

@magicmatatjahu
Copy link
Contributor

Chore summary

As a user I want to know if I defined $ref fields in proper places in my AsyncAPI document

Is your feature request related to a problem?

The following AsyncAPI document is invalid and Spectral should throw errors due to invalid defined references (in impossible places):

asyncapi: '2.0.0'
channels: 
  someChannel:
    publish:
      $ref: '#/components/x-operations/someOperation'
components:
  'x-operations':
    someOperation: ...

We cannot use $ref in operations.

Additional context
Part of #2100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AsyncAPI Issues related to the AsyncAPI ruleset chore enhancement New feature or request triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants