• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

redhat-developer / yaml-language-server / 13764900112
84%
master: 80%

Build:
Build:
LAST BUILD BRANCH: crd
DEFAULT BRANCH: master
Ran 10 Mar 2025 12:42PM UTC
Jobs 3
Files 52
Run time 19min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Mar 2025 12:41PM UTC coverage: 84.313% (+0.007%) from 84.306%
13764900112

push

github

web-flow
fix enum values to be unique (#1028)

* fix enum values to be unique

fix enum values to be unique

* when several schemas get combined (e.g., `oneOf`, `anyOf`) the available values for an `enum` could get merged
* this could lead to enum values present several time
* this PR only adds an enum values to the merged list, if its value is not present so far
* corresponding unit test is present as well

example:

schema:
```json
{
  "type": "object",
  "properties": {
    "animal": {
      "description": "should return this description",
      "anyOf": [
        {
          "enum": [ "cat", "dog", "non" ],
          "enumDescriptions": [ "", "Canis familiaris" ]
        },
        {
          "enum": [ "bird", "fish", "non" ],
          "enumDescriptions": [ "", "Special fish" ]
        }
      ]
    }
  }
}
```

Without the fix the `available value` list is: `[ cat, dog, non, bird, fish, non ]` with `non` being present twice.

With the fix the second `non` is removed, leaving only: `[ cat, dog, non, bird, fish ]`

* Update yamlHover.ts

---------

Co-authored-by: Muthurajan Sivasubramanian <93245779+msivasubramaniaan@users.noreply.github.com>

2135 of 2690 branches covered (79.37%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

3342 of 3806 relevant lines covered (87.81%)

9875.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 13764900112.1 10 Mar 2025 12:42PM UTC 52
84.31
GitHub Action Run
2 13764900112.2 10 Mar 2025 12:42PM UTC 52
84.31
GitHub Action Run
3 13764900112.3 10 Mar 2025 12:44PM UTC 52
84.31
GitHub Action Run
Source Files on build 13764900112
  • Tree
  • List 52
  • Changed 52
  • Source Changed 52
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #13764900112
  • 588b2da8 on github
  • Prev Build on main (#13683167067)
  • Next Build on main (#13770567490)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc