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

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

Build:
Build:
LAST BUILD BRANCH: chang-patch-1141
DEFAULT BRANCH: master
Ran 26 May 2025 05:26PM UTC
Files 53
Run time 1s
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

26 May 2025 05:25PM UTC coverage: 83.873% (+0.002%) from 83.871%
15259240957.2

push

github

datho7561
Fix YAML JSON Schema files starting with %YAML 1.x

Fix a bug where YAML files containing a JSON Schema that start with
%YAML 1.x or a comment that contains a number would fail to to be parsed.

This is caused by the fact that the JSON Schema parser would contain the
number, e.g. 1.2 as the value of `unresolvedJsonSchema.schema` and so
the test for `=== undefined` would fail. This would cause the error from
the JSON parser to be returned instead of trying to parse the file as a
YAML file.

To work around this, also check if `unresolvedJsonSchema.schema` is a
number. It if is, it clearly was not a JSON Schema and so we can safely
try to parse the file as a YAML file.

Fixes: https://github.com/redhat-developer/yaml-language-server/issues/922
Signed-off-by: David Lechner <dlechner@baylibre.com>

2162 of 2739 branches covered (78.93%)

Branch coverage included in aggregate %.

3377 of 3865 relevant lines covered (87.37%)

3288.05 hits per line

Source Files on job 15259240957.2
  • Tree
  • List 53
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 15259240957
  • c94fa435 on github
  • Prev Job for on main (#15167284582.1)
  • Next Job for on main (#15611069352.1)
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

© 2026 Coveralls, Inc