atlassian / atlassian/better-ajv-errors

Make `unevaluatedProperties` error message as clear as `additionalProperties` message

Open
#182 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
245
Forks
50
PR merge metrics
No merged PRs in 30d

Description

The `additionalProperties` error message names the additional property: `Property arbitrary_key is not expected to be here.`

The `unevaluatedProperties` error message doesn't: `unevaluatedProperties must NOT have unevaluated properties`. It also shows the wrong line number - it's the line for the containing object, not for the property itself.

Is it possible to make the second more like the first? It was a really useful message.

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the repository for the existing `additionalProperties` message and the `unevaluatedProperties must NOT have unevaluated properties` string, then trace the formatter and its related tests. Update the unevaluated-properties output to name the property and report that property's line, matching the requested clarity and location.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.