Open lcawl opened 9 months ago
We now recommend using the following linting rules in spectral: https://github.com/elastic/elastic-openapi/blob/main/.spectral.yaml
We've turned off quite a few default checks since Bump.sh doesn't seem to have a problem with these values, but in case folks use other tools it might still be nice to fix.
While testing the OAS output in Readme, it failed to import the file due to errors in the schema names. The same type of errors can be seen by running
npx @redocly/cli lint elasticsearch-serverless-openapi.json
. For example:Similar errors occur when there are colons in the name, for example:
In my local tests, these errors disappear if we use an underscore or period instead of a colon or number sign.