Commit Graph

2 Commits

Author SHA1 Message Date
Andrew Tatomyr
c3ed020bbd chore: update prettier scripts (#1636) 2024-07-22 10:55:18 +03:00
Roman Hotsiy
680c431cbb AsyncAPI linting support (#1127)
* chore: progress on asyncapi

* chore: more progress

* chore: enable assertions

* Feat: Start adding protocol-specific channel bindings

* Feat: flesh out components fields

* Fix: remove link and x-code-sample, not supported for asyncapi

* Feat: Add solace protocol support

* chore: refactor channel/server bindings to define and add to collection

* chore: re-order nodes to group by protocol

* chore: re-order node listings to also group by protocol

* feat: add topicConfiguration for Kafka and fix a typo

* feat: rename ServerMap for clarity

* feat: Add message bindings, remove incomplete protocols

* fix: a few tests were failing after original refactoring

* feat: add MessageTrait object

* feat: Add operation bindings, export operation and message bindings

* Feat: add a few rules for asyncapi, create channels-kebab-case

* fix: Add messageBindings and operationBindings to components section

* feat: Add no-channel-trailing-slash rule for asyncapi

* fix: Update allowed/required list for httpAPIkey

* chore: add tests for new AsyncAPI rules

* Feat: Add sample asyncapi descriptions as tests

* chore: generate snapshot.js for async-api tests

* chore: fix some minor drift between main branch and this one after
rebasing

* docs: add a guide to linting AsyncAPI

* fix: broken links in guide

* chore: run prettier

* chore: update test snapshot

* chore: clean up comments and stray log message

* docs: Update from review feedback, and add a health warning

* Update packages/core/src/config/config-resolvers.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* fix: allow async2 as the only feature in custom plugins

* chore: add tests and tweak error messages for document type detection

* chore: fix tests and rename majorSpecVersion->getMajorSpecVersion

* chore: run prettier

* chore: Tidy and improve comments in main asyncapi types file

* chore: remove outdated comment

* fix: remove extraneous empty extends from guide and tests

* docs: Add changeset for AsyncAPI feature

* Update .changeset/quick-emus-punch.md

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

---------

Co-authored-by: Lorna Mitchell <lorna.mitchell@redocly.com>
Co-authored-by: SmoliyY <yevhen.smoliy@gmail.com>
Co-authored-by: Lorna Jane Mitchell <github@lornajane.net>
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
2023-09-15 13:52:03 +01:00