databricks-cli/libs/jsonschema
Russell Clarey 3a3076d9ea
Output deprecated annotations in the JSON schema (#2422)
## Changes
Start outputting `deprecated` and `deprecationMessage` annotations in
the JSON schema

## Why
So that deprecated fields are shown as deprecated in VSCode (and other
editors)

## Tests
- manually tested

||||
|---|---|---|
|<img width="682" alt="Screenshot 2025-03-03 at 16 04 21"
src="https://github.com/user-attachments/assets/9712aa2f-0f41-48a9-8bd0-ec92b8b75c3f"
/>|<img width="682" alt="Screenshot 2025-03-03 at 16 04 29"
src="https://github.com/user-attachments/assets/a14f3523-ad85-4fed-96d7-2a8cf3a458e5"
/>|<img width="682" alt="Screenshot 2025-03-03 at 16 06 03"
src="https://github.com/user-attachments/assets/b9ab1050-048e-4c14-b183-96d615a4fbc1"
/>|
2025-03-05 11:17:03 +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 Output deprecated annotations in the JSON schema (#2422) 2025-03-05 11:17:03 +00:00
from_type.go Output deprecated annotations in the JSON schema (#2422) 2025-03-05 11:17:03 +00:00
from_type_test.go Output deprecated annotations in the JSON schema (#2422) 2025-03-05 11:17:03 +00:00
instance.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
instance_test.go Add support for `anyOf` to `skip_prompt_if` (#1133) 2024-01-25 10:09:42 +00:00
schema.go Output deprecated annotations in the JSON schema (#2422) 2025-03-05 11:17:03 +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 Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
utils_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01: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