Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The current linter schema is somewhat outdated and incomplete, this PR fixes these flaws and provides a JSON Schema export for the benefit of IDE users.
As far as I know, you can enable schema checking in your VSCode using a syntax like:
Note that the file schema.json is generated by the program, so the JSON Schema may not fully reflect the complete configuration schema, as some of the checksums are done at runtime by code.
I don't think you need to worry about this, execute adc lint to check the declaration file in its entirety.
In addition to this, I must say that since API7 and APISIX do not currently support the same features, and it is possible that a feature is not yet implemented on a particular platform, the configuration checked by lint does not always ensure that all fields are submited to the API, it is a best-effort effort based on the back-end API version. If you encounter a field that is not supported, the ADC or backend API may discard it or report an error.
Checklist