Skip to content

package.json schema incorrect #5230

@tj-commits

Description

@tj-commits

Area with issue?

JSON Schema

✔️ Expected Behavior

I created a package.json file with the package name as @is-(unknown)/is-one or similar (a package name with parentheses in the scope, which is valid) in Visual Studio Code. I expected this to be valid as it is.

❌ Actual Behavior

I saw the warning String does not match the pattern of "^(?:(?:@(?:[a-z0-9-*~][a-z0-9-*._~]*)?/[a-z0-9-._~])|[a-z0-9-~])[a-z0-9-._~]*$"

I created this issue on the VSCode repository first but they referenced that I needed to open issue here.

microsoft/vscode#283826 (comment)

IDE or code editor.

Visual Studio Code

Are you making a PR for this?

No, someone else must create the PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedissue:bugReport errors or unexpected behavior (auto-generated by issue forms)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions