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

AsyncAPI - Add rule to check object keys in fixed fields #2503

Open
1 task
Amzani opened this issue Jul 11, 2023 · 0 comments
Open
1 task

AsyncAPI - Add rule to check object keys in fixed fields #2503

Amzani opened this issue Jul 11, 2023 · 0 comments

Comments

@Amzani
Copy link

Amzani commented Jul 11, 2023

Chore summary

As a user I want to know if all the fixed fields are objects that MUST use keys that match the regular expression: ^[a-zA-Z0-9.-_]+$

https://www.asyncapi.com/docs/reference/specification/v2.6.0#componentsObject

Currently spectral trigger only an asyncapi-document-unresolved error

Example of an invalid asyncAPI file: https://gist.github.com/Amzani/7df1d67d7eb665bdc7a2a5dd7e794e0c

Tasks

  • send a new error to match ^[a-zA-Z0-9\.\-_]+$ regular expression requirement

Additional context

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

No branches or pull requests

2 participants