databricks-cli/bundle/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
..
embed.go Make bundle JSON schema modular with `$defs` (#1700) 2024-09-10 13:55:18 +00:00
embed_test.go Allow using variables in enum fields (#2199) 2025-01-22 10:30:17 +00:00
jsonschema.json Allow yaml-anchors in schema (#2200) 2025-01-23 11:11:44 +00:00