better-ajv-errors icon indicating copy to clipboard operation
better-ajv-errors copied to clipboard

Feature: improve description of dependency requirements

Open plocket opened this issue 1 year ago • 0 comments

One of my error messages is because my attachment["raw"] requires attachment["content file"]. The most specific error I get is /attachment/0 must have required property 'content file'.

    "attachment": {
      "dependencies": {
        "raw": {"required": ["content file"]},
      }
    }

It'd be great to know that content file is required because raw is present. Not sure if it's possible, but I can dream.

plocket avatar Dec 03 '23 19:12 plocket