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(Config Schema): Add enhanced object syntax for plugins #8259

Merged
merged 1 commit into from Sep 18, 2020

Conversation

jimjenkins5
Copy link
Contributor

Closes: #8206

@codecov-commenter
Copy link

codecov-commenter commented Sep 16, 2020

Codecov Report

Merging #8259 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8259   +/-   ##
=======================================
  Coverage   88.09%   88.09%           
=======================================
  Files         248      248           
  Lines        9377     9377           
=======================================
  Hits         8261     8261           
  Misses       1116     1116           
Impacted Files Coverage Δ
lib/configSchema.js 100.00% <ø> (ø)

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 6f392b3...9fa75b7. Read the comment docs.

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

Thank you @jimjenkins5 ! That looks very good. I've proposed few improvements, so schema is complete

properties: {
localPath: { type: 'string' },
modules: { type: 'array', items: { type: 'string' } },
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make modules required, also let's add additionalProperties: false, so eventual typos are picked and not ignored.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made these 2 changes. Thanks!

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

Thank you @jimjenkins5 !

@medikoo medikoo merged commit 4b86fa5 into serverless:master Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuration warning at 'plugins': should be array when using Enhanced Object
3 participants