redhat-developer / redhat-developer/vscode-yaml

Erroneous schema detection

Open
#1,047 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
829
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

Describe the bug

I have file .github/workflows/build.yaml , which is highlighted red with this error:

Property name is not allowed. yaml-schema: gRPC API Gateway & OpenAPI Config

The file has nothing to do with gRPC or OpenAPI and should not be checked as such.

Expected Behavior

Do not use schema for gRPC & OpenAPI with github woskflows file.

Current Behavior

File is checked against wrong schema.

Steps to Reproduce

  1. Install YAML extension
  2. Create file .github/workflows/build.yaml with some standard Github Workflow
  3. See that errors would appear from wrong schema

Environment

  • Ubuntu 24.04

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by installing the YAML extension and opening a standard .github/workflows/build.yaml file in VS Code. Trace how the file is assigned the gRPC API Gateway & OpenAPI schema, then verify that GitHub workflow files are checked with the appropriate schema and no unrelated errors appear.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode, yaml
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.