Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: schema for the host option #3549

Merged
merged 1 commit into from Jul 21, 2021
Merged

Conversation

alexander-akait
Copy link
Member

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

Existing

Motivation / Use-Case

fix schema

Breaking Changes

No

Additional Info

Also update options for CLI

@codecov
Copy link

codecov bot commented Jul 21, 2021

Codecov Report

Merging #3549 (09a0828) into master (0c07404) will increase coverage by 0.46%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3549      +/-   ##
==========================================
+ Coverage   93.53%   94.00%   +0.46%     
==========================================
  Files          18       18              
  Lines        1284     1284              
  Branches      431      431              
==========================================
+ Hits         1201     1207       +6     
+ Misses         77       71       -6     
  Partials        6        6              
Impacted Files Coverage Δ
bin/cli-flags.js 100.00% <ø> (ø)
lib/Server.js 93.73% <0.00%> (+0.36%) ⬆️
lib/utils/DevServerPlugin.js 100.00% <0.00%> (+2.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c07404...09a0828. Read the comment docs.

Comment on lines +288 to +296
"anyOf": [
{
"enum": ["local-ip", "local-ipv4", "local-ipv6"]
},
{
"type": "string",
"minLength": 1
}
]
Copy link
Member

@snitin315 snitin315 Jul 21, 2021

Choose a reason for hiding this comment

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

schema-utils should respect parentSchema.link/description, if we don't have link/description for children.

Comment on lines -261 to 262
- options.host should be a non-empty string.
-> Allows to specify a hostname to use.
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverhost"
- options.host should be a non-empty string."
`;
Copy link
Member

Choose a reason for hiding this comment

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

I see the link is not showing only happening with non-empty error.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, it should be fixed in schema-utils

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we can merge it as is and update snapshots after fixing it in schema utils

@alexander-akait alexander-akait merged commit 7200d31 into master Jul 21, 2021
@alexander-akait alexander-akait deleted the fix-host-option-in-schema branch July 21, 2021 14:20
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.

None yet

3 participants