Skip to content

Comments

fix: Normalize urls in precompile-schemas#32

Open
batchu5 wants to merge 1 commit intowebpack:mainfrom
batchu5:fix/normalize-url-handling
Open

fix: Normalize urls in precompile-schemas#32
batchu5 wants to merge 1 commit intowebpack:mainfrom
batchu5:fix/normalize-url-handling

Conversation

@batchu5
Copy link

@batchu5 batchu5 commented Feb 23, 2026

Summary

Tests are failing in the webpack repository on Windows because URL normalization is not occurring.

What kind of change does this PR introduce?
fix: normalize the URL in precompile-schemes

Did you add tests for your changes?
no

Does this PR introduce a breaking change?
no

discussion on Discord -> https://discord.com/channels/1180618526436888586/1180619658307571843/1475119754061811936

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 23, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: batchu5 / name: Varshitha Besthavemula (aa982e5)

logger: false,
loadSchema: (uri) => {
schemaPath = fileURLToPath(uri);
schemaPath = fileURLToPath(new URL(decodeURI(uri)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide me value of uri on windows?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file:///C%253A/Users/varsh/Desktop/webpack/schemas/WebpackOptions.json

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, looks like ajv is doing something extra, but should not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants