databricks-cli/libs/template
shreyas-goenka 5df8935de4
Add JSON schema validation for input template parameters (#598)
## Changes

This PR:
1. Adds code for reading template configs and validating them against a
JSON schema.
2. Moves the json schema struct in `bundle/schema` to a separate library
package. This struct is now reused for validating template configs.

## Tests
Unit tests
2023-08-01 14:09:27 +00:00
..
testdata Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
file.go Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
file_test.go Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
helpers.go Add url parse helper function for templates (#600) 2023-07-27 09:51:31 +00:00
helpers_test.go Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
renderer.go Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
renderer_test.go Only treat files with .tmpl extension as templates (#594) 2023-08-01 13:43:27 +00:00
schema.go Add JSON schema validation for input template parameters (#598) 2023-08-01 14:09:27 +00:00
schema_test.go Add JSON schema validation for input template parameters (#598) 2023-08-01 14:09:27 +00:00
validators.go Add JSON schema validation for input template parameters (#598) 2023-08-01 14:09:27 +00:00
validators_test.go Add JSON schema validation for input template parameters (#598) 2023-08-01 14:09:27 +00:00