databricks-cli/libs/jsonschema
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
..
testdata Add support for regex patterns in template schema (#768) 2023-09-25 09:53:38 +00:00
extension.go Add support for regex patterns in template schema (#768) 2023-09-25 09:53:38 +00:00
instance.go Add support for regex patterns in template schema (#768) 2023-09-25 09:53:38 +00:00
instance_test.go Add support for regex patterns in template schema (#768) 2023-09-25 09:53:38 +00:00
schema.go Add support for regex patterns in template schema (#768) 2023-09-25 09:53:38 +00:00
schema_order.go Add support for ordering of input prompts (#662) 2023-09-05 11:08:25 +00:00
schema_order_test.go Add support for ordering of input prompts (#662) 2023-09-05 11:08:25 +00:00
schema_test.go Add support for regex patterns in template schema (#768) 2023-09-25 09:53:38 +00:00
utils.go Add support for regex patterns in template schema (#768) 2023-09-25 09:53:38 +00:00
utils_test.go Add support for regex patterns in template schema (#768) 2023-09-25 09:53:38 +00:00
validate_type.go Add schema and config validation to jsonschema package (#740) 2023-09-07 14:36:06 +00:00
validate_type_test.go Add schema and config validation to jsonschema package (#740) 2023-09-07 14:36:06 +00:00