databricks-cli/libs/template
shreyas-goenka 7c96270db8
Add enum support for bundle templates (#668)
## Changes
This PR includes:
1. Adding enum field to the json schema struct
2. Adding prompting logic for enum values. See demo for how it looks
3. Validation rules, validating the default value and config values when
an enum list is specified

This will now enable template authors to use enums for input parameters.

## Tests
Manually and new unit tests
2023-09-08 12:07:22 +00:00
..
templates/default-python Fix notebook showing up in template when not selected (#743) 2023-09-07 08:26:43 +00:00
testdata Add schema and config validation to jsonschema package (#740) 2023-09-07 14:36:06 +00:00
config.go Add enum support for bundle templates (#668) 2023-09-08 12:07:22 +00:00
config_test.go Add enum support for bundle templates (#668) 2023-09-08 12:07:22 +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 databricks bundle init template v2: optional stubs, DLT support (#700) 2023-09-06 09:52:31 +00:00
helpers_test.go Add a foundation for built-in templates (#685) 2023-08-25 09:03:42 +00:00
materialize.go Cleanup after "Add a foundation for built-in templates" (#707) 2023-08-30 14:01:08 +00:00
renderer.go databricks bundle init template v2: optional stubs, DLT support (#700) 2023-09-06 09:52:31 +00:00
renderer_test.go databricks bundle init template v2: optional stubs, DLT support (#700) 2023-09-06 09:52:31 +00:00