databricks-cli/bundle/internal/schema
Ilya Kuznetsov f60ad32f07
Allow yaml-anchors in schema (#2200)
## Changes

Allows custom untyped fields in the root config in json-schema so it
doesn't highlight errors when using yaml-anchors.

Example use case:

```
tags: &job-tags
  environment: ${bundle.target}


resources:
  jobs:
    db1:
      tags:
        <<: *job-tags
    db1:
      tags:
        <<: *job-tags
```
  
One downside is that we don't highlight any unknown top-level properties
anymore (but they will still fail during CLI validation)

## Tests

Manually checked behavior in VSCode - it doesn't show validation error.
Also checked that other typed properties are still suggested
2025-01-23 11:11:44 +00:00
..
testdata Allow yaml-anchors in schema (#2200) 2025-01-23 11:11:44 +00:00
annotations.go fix: Empty schema fields in OpenAPI spec (#2045) 2024-12-23 12:08:01 +00:00
annotations.yml Add doc string for `bundle.uuid` (#2170) 2025-01-20 14:52:22 +00:00
annotations_openapi.yml Bump github.com/databricks/databricks-sdk-go from 0.54.0 to 0.55.0 (#2126) 2025-01-14 16:02:34 +00:00
annotations_openapi_overrides.yml Bump github.com/databricks/databricks-sdk-go from 0.54.0 to 0.55.0 (#2126) 2025-01-14 16:02:34 +00:00
annotations_test.go Custom annotations for bundle-specific JSON schema fields (#1957) 2024-12-18 10:19:14 +00:00
main.go Allow yaml-anchors in schema (#2200) 2025-01-23 11:11:44 +00:00
main_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
parser.go Enable intrange linter and apply autofix (#2069) 2025-01-03 09:25:07 +00:00