databricks-cli/libs/jsonschema/testdata/instance-validate
shreyas-goenka 757d5efe8d
Add support for regex patterns in template schema (#768)
## Changes
This PR introduces support for regex pattern validation in our custom
jsonschema validator. This allows us to fail early if a user enters an
invalid value for a field.

For example, now this is what initializing the default template looks
like with an invalid project name:
```
shreyas.goenka@THW32HFW6T bricks % cli bundle init
Template to use [default-python]: 
Unique name for this project [my_project]: (_*_)
Error: invalid value for project_name: (_*_). Must consist of letter and underscores only.
```

## Tests
New unit tests and manually.
2023-09-25 09:53:38 +00:00
..
test-schema-enum.json Add enum support for bundle templates (#668) 2023-09-08 12:07:22 +00:00
test-schema-no-additional-properties.json Add schema and config validation to jsonschema package (#740) 2023-09-07 14:36:06 +00:00
test-schema-pattern-with-custom-message.json Add support for regex patterns in template schema (#768) 2023-09-25 09:53:38 +00:00
test-schema-pattern.json Add support for regex patterns in template schema (#768) 2023-09-25 09:53:38 +00:00
test-schema-some-fields-required.json Add schema and config validation to jsonschema package (#740) 2023-09-07 14:36:06 +00:00
test-schema.json Add schema and config validation to jsonschema package (#740) 2023-09-07 14:36:06 +00:00