atlassian / atlassian/better-ajv-errors
Add YAML support
- Dominant language
- JavaScript
- Stars
- 245
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
First off, thanks for this polished library.
Since YAML is compatible with JSON, it would be nice if there was an option to use YAML for the error visualization, i.e. instead of this:
```
4 | "content": [
5 | {
> 6 | "type": "paragarph",
| ^^^^^^^^^^^
7 | "content": [
8 | {
9 | "type": "text",
```
Show this:
```
4 | content:
> 5 | - type: paragarph
| ^^^^^^^^^
6 | content:
7 | - type: text
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by examining the library's current JSON error visualization and how its output format is selected. Compare the requested YAML example with existing behavior, then verify that an option produces equivalent YAML-formatted output while preserving highlighted locations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, yaml
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100