Consider this error:

```
ℹ The error happened in the field /book/chapters/0/chapters/4.
In file /Users/cscheid/repos/github/quarto-dev/quarto-sites/to-fix/incog-workbench/_quarto.yml (line 49, column 11 through line 50, column 63) The value text: "Administrative Dashboard"
          file: server_management/administrative_dashboard.qmd must be at least one of: a string, an object.
48:         - server_management/logging.qmd
49:         - text: "Administrative Dashboard"
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
50:           file: server_management/administrative_dashboard.qmd
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51:         - server_management/automated_crash_reporting.qmd
```

The schema says:

```
anyOf:
  - string
  - record:
      text: string
      url: string
```

The error is technically right in that replacing the entire object with a string would fix it. But reporting that `file` is not an allowed key for that record is really what we should say.
cscheid
2022-01-24T19:32:03Z
cscheid
yaml-validation
closed
Improve error localization in anyOf schemas
https://github.com/quarto-dev/quarto-cli/issues/283