Skip to content

[Bug?]: JSON Schema errors in 4.11.0 #6972

@joshkel

Description

@joshkel

Self-service

  • I'd be willing to implement a fix

Describe the bug

Starting with Yarn 4.11.0, the JSON Schema that it publishes to validate .yarnrc.yml files results in errors in VS Code:

Schema 'Yarn Config (.yarnrc.yml) - Yarnrc configuration files (yarnrc.json)' is not valid:
/properties/httpTimeout/type : must be equal to one of the allowed values
/properties/httpTimeout/type : must be array
/properties/httpTimeout/type : must match a schema in anyOfYAML(768)

To reproduce

Open a .yarnrc.yml file in VS Code.

Environment

System:
    OS: macOS 15.6.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 22.18.0 - /private/var/folders/j5/l20bwyp12yb180ql522y2t3w0000gn/T/xfs-696a5733/node
    Yarn: 4.11.0 - /private/var/folders/j5/l20bwyp12yb180ql522y2t3w0000gn/T/xfs-696a5733/yarn
    npm: 10.9.3 - /Users/josh/.nvm/versions/node/v22.18.0/bin/npm
    bun: 1.3.0 - /opt/homebrew/bin/bun
    Deno: 2.5.4 - /opt/homebrew/bin/deno
  npmPackages:
    jest: ^30.2.0 => 30.2.0

Additional context

This appears to be the result of #6942.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions