databricks-cli/libs/jsonschema
shreyas-goenka 283f24179d
Remove validation for default value against pattern (#959)
## Changes
This PR removes validation for default value against the regex pattern
specified in a JSON schema at schema load time. This is required because
https://github.com/databricks/cli/pull/795 introduces parameterising the
default value as a Go text template impling that the default value now
does not necessarily have to match the pattern at schema load time.

This will also unblock:
https://github.com/databricks/mlops-stacks/pull/108

Note, this does not remove runtime validation for input parameters right
before template initialization, which happens here:
fb32e78c9b/libs/template/materialize.go (L76)

## Tests
Changes to existing test.
2023-11-07 12:35:59 +00:00
..
testdata Fix pattern validation for input properties (#912) 2023-10-24 15:56:54 +00:00
extension.go Add welcome message to bundle templates (#907) 2023-10-25 12:27:25 +00:00
instance.go Make to/from string methods private to the jsonschema package (#942) 2023-11-06 15:05:17 +00:00
instance_test.go Fix pattern validation for input properties (#912) 2023-10-24 15:56:54 +00:00
schema.go Remove validation for default value against pattern (#959) 2023-11-07 12:35:59 +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 Remove validation for default value against pattern (#959) 2023-11-07 12:35:59 +00:00
utils.go Make to/from string methods private to the jsonschema package (#942) 2023-11-06 15:05:17 +00:00
utils_test.go Make to/from string methods private to the jsonschema package (#942) 2023-11-06 15:05:17 +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