databricks-cli/libs/jsonschema
Ilya Kuznetsov 042c8d88c6
Custom annotations for bundle-specific JSON schema fields (#1957)
## Changes

Adds annotations to json-schema for fields which are not covered by
OpenAPI spec.

Custom descriptions were copy-pasted from documentation PR which is
still WIP so descriptions for some fields are missing

Further improvements:
* documentation autogen based on json-schema
* fix missing descriptions

## Tests

This script is not part of CLI package so I didn't test all corner
cases. Few high-level tests were added to be sure that schema
annotations is in sync with actual config

---------

Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
2024-12-18 10:19:14 +00:00
..
test_types Make bundle JSON schema modular with `$defs` (#1700) 2024-09-10 13:55:18 +00:00
testdata Add support for `anyOf` to `skip_prompt_if` (#1133) 2024-01-25 10:09:42 +00:00
extension.go Custom annotations for bundle-specific JSON schema fields (#1957) 2024-12-18 10:19:14 +00:00
from_type.go Make bundle JSON schema modular with `$defs` (#1700) 2024-09-10 13:55:18 +00:00
from_type_test.go Add error checking in tests and enable errcheck there (#1980) 2024-12-09 13:56:41 +01:00
instance.go Add support for `anyOf` to `skip_prompt_if` (#1133) 2024-01-25 10:09:42 +00:00
instance_test.go Add support for `anyOf` to `skip_prompt_if` (#1133) 2024-01-25 10:09:42 +00:00
schema.go Custom annotations for bundle-specific JSON schema fields (#1957) 2024-12-18 10:19:14 +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 Use `fs.FS` interface to read template (#1910) 2024-11-20 09:28:35 +00:00
utils.go Add support for reprompts if user input does not match template schema (#946) 2023-12-22 15:43:08 +00:00
utils_test.go Add support for reprompts if user input does not match template schema (#946) 2023-12-22 15:43:08 +00:00
validate_type.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
validate_type_test.go Add schema and config validation to jsonschema package (#740) 2023-09-07 14:36:06 +00:00