Lint AsyncApi docs
Lint created asyncApi.json files with spectral as recommended on the asyncApi blog: https://www.asyncapi.com/blog/creating-consistency-announcing-asyncapi-spectral-together#steps-to-utilizing-asyncapi--spectral
The asyncApi.json Map Header is removed, this will require also UI changes from https://github.com/springwolf/springwolf-ui/pull/8
Fixed non-compliant asyncApi issues (info block, operationId)
Info: This must be merged in sync with the UI changes, which might require a (couple) review iteration.
Another thought - adding a validation during the build phase will be more effective. There is none available that I know of, but when there will be we should add it as well.
Another thought - adding a validation during the build phase will be more effective. There is none available that I know of, but when there will be we should add it as well.
Agreed. During build time would be when the spring application starts up and not compiler errors, right?
I am also not aware of such a package. I could imagine a springwolf-asyncapi-validator package, which runs validation on the AsyncAPI pojo - made available by the DefaultAsyncApiService as bean?
Another thought - adding a validation during the build phase will be more effective. There is none available that I know of, but when there will be we should add it as well.
Agreed. During build time would be when the spring application starts up and not compiler errors, right? I am also not aware of such a package. I could imagine a
springwolf-asyncapi-validatorpackage, which runs validation on theAsyncAPIpojo - made available by theDefaultAsyncApiServiceas bean?
I would argue that springwolf should not be able to generate invalid async api docs, so I would have the validation fail the core/plugins build, not at the user side.
And yes, we can create a new module for the validator. It is a lot of effort I assume, and the github actions linter is a good start.