Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* integration/apps_spec_test: Add tests for apps spec validate-offline * commands/apps: Add apps spec validate-offline command (Fixes #1449) Implement a new command to validate an app spec without requiring auth & connection to the API. This is useful for validating app specs in CI pipelines and untrusted environments. As there is no currently published [YAML schema][1] for use with [`redhat.vscode-yaml`][2], this seems to be the best approach for now. [1]: https://www.schemastore.org/json/ [2]: https://github.com/redhat-developer/yaml-language-server * commands/apps: Refactor spec validation into a common function * commands/apps: refactor validate-offline -> --schema-only (Fixes #1449) (#1) Thanks to @andrewsomething for the suggestion! Reference: - #1450 (review) * Add integration test without auth. --------- Co-authored-by: Andrew Starr-Bochicchio <[email protected]>
- Loading branch information