1098 Commits

Author SHA1 Message Date
Mariusz Nowak
df1b8a9433 fix(Config Schema): Run validation logic unconditionally
It's to ensure that properties normalization is applied unconditionally
2020-10-30 15:26:25 +01:00
Mariusz Nowak
9481029b59 refactor(Config Schema): No point in creating new object 2020-10-30 15:26:25 +01:00
Mariusz Nowak
c2712183a5 refactor(Config Schema): Run schema validation only in service context 2020-10-30 15:26:25 +01:00
Mariusz Nowak
214768b83a refactor: Ensure config modifications happen after its validation 2020-10-30 15:26:25 +01:00
Mariusz Nowak
b04ab55fab fix(Config Schema): Ensure to validate provider as in config file 2020-10-29 09:27:03 +01:00
Frédéric Barthelet
719fa3a3bf
feat(Config Schema): Async invocations AWS functions[] schema (#8385) 2020-10-13 10:27:07 +02:00
Mariusz Nowak
2e26e07f92 fix: Ensure to preserve undefined valued propeties as undefined 2020-10-09 12:34:20 +02:00
Mariusz Nowak
c93a799653 fix(Config Schema): Ensure to preserve null properties in user config 2020-10-07 13:36:34 +02:00
Mariusz Nowak
ac34110852 fix(Variables): Fix support for ${self:} 2020-10-05 15:47:41 +02:00
Mariusz Nowak
fd451caf90 fix(Variables): Fix handling of circular object references 2020-10-05 15:47:41 +02:00
Oz Weiss
4168dc1f30
feat(Config Schema): Schema for layers (#8299) 2020-10-01 17:39:51 +02:00
Mariusz Nowak
a6ff964d84 feat: Coerce primitive config values to arrays, when array is expected 2020-10-01 15:31:21 +02:00
Mariusz Nowak
6d1ee37004 feat: Coerce input configuration values 2020-10-01 15:31:21 +02:00
Mariusz Nowak
c51e293ff4 refactor(Config Schema): Improve comments 2020-10-01 15:31:21 +02:00
Mariusz Nowak
57996a06a0 feat: Clear null valued props in service configuration
Instead of normalizing just for schema validation, normailze also for use
2020-10-01 15:31:21 +02:00
Piotr Grzesik
56c7e443a0
refactor: Replace _.forOwn with Object.entries().forEach (#8284) 2020-09-24 17:17:39 +02:00
Matthieu Napoli
2fdeb51174
fix(Variables): Ensure no collisions with AWS CloudFormation variables
(PR #8279)
2020-09-24 15:31:02 +02:00
Piotr Grzesik
76e02cc09c
refactor: Replace _.forEach with Object.entries().forEach (#8280) 2020-09-24 10:31:32 +02:00
Piotr Grzesik
b867df147a
refactor: Replace _.{entries|entriesIn|toPairs} with Object.entries
(PR #8275)
2020-09-23 13:13:54 +02:00
Piotr Grzesik
57d1ce1a66
refactor: Replace _.values with Object.values (#8274) 2020-09-23 13:09:50 +02:00
Frédéric Barthelet
feece9a2ec
feat(Config Schema): Schema for functions[] properties (#8222) 2020-09-21 16:50:52 +02:00
Mariusz Nowak
e5e42bab8c fix(Config Schema): Treat explicit null or undefined as no value
Workaround for https://github.com/ajv-validator/ajv/issues/1287
2020-09-21 10:02:13 +02:00
Mariusz Nowak
9bec4226e5 refactor(Config Schema): Do not pass obsolete arguments 2020-09-21 10:02:13 +02:00
Mariusz Nowak
d5833f8380 refactor: Ensure constient returns 2020-09-15 18:21:44 +02:00
Mariusz Nowak
c370295be6 refactor(Config Schema): Move docs to website page 2020-09-10 10:49:02 +02:00
Mariusz Nowak
2c19bf5eae refactor(Config Schema): Unified color scheme 2020-09-10 10:49:02 +02:00
Mariusz Nowak
6e84563551 test: Rename module to match conventions 2020-09-09 11:17:21 +02:00
Mariusz Nowak
05921b61ee test: Upgrade to use new fixtures engine 2020-09-09 11:17:21 +02:00
Geoff Baskwill
00d6f79c50
feat(Config Schema): Schema for AWS resources section (#8139) 2020-09-07 09:21:16 +02:00
Mariusz Nowak
6dd0596286 fix: Revert from frameworkVersion requirement 2020-09-02 18:33:00 +02:00
Mariusz Nowak
0d5a480fd0 fix: Fix handling of invalid range put into frameworkVersion
Invalid `frameworkVersion` in all cases made `semver.satisfy` to return false.
It's confusing e.g. for cases where we put number 1 instead of string "1" as `frameworkVersion` and that's considered as invalid value
2020-09-02 14:37:49 +02:00
Mariusz Nowak
9f7f9d3983 feat(CLI): Announce frameworkVersion requirement 2020-09-02 13:04:59 +02:00
Mariusz Nowak
246e4a6756 feat(Analytics): Introduce "isLocallyInstalled" characteristics 2020-09-02 13:04:59 +02:00
Mariusz Nowak
c0fb04af3d fix: Fix handling of pre-releases in frameworkVersion validation 2020-09-02 10:06:18 +02:00
Mariusz Nowak
8c3c7c4e3a chore: Rename "tests" folder to "test"
Also upgrade @serverless/eslint-config to v2
2020-08-28 16:22:09 +02:00
Mariusz Nowak
6d7e967227 refactor(Config Schema): Treat "resources" as fully provider specific 2020-08-28 14:17:54 +02:00
Mariusz Nowak
c79cae2308 refactor(Config Schema): Define AWS definitions in context of provider 2020-08-28 14:17:54 +02:00
Mariusz Nowak
af603198a1 fix(Config Schema): Ensure to validate direct config where applicable 2020-08-28 14:17:54 +02:00
Mariusz Nowak
c64d6d5f01
test: Ensure result of tests does not depend on package version 2020-08-25 14:28:40 +02:00
Derek Kulinski
82f6db7a1f
feat(Plugins): Fallback plugins search to global installation folder
(PR #8038)
2020-08-20 09:40:48 +02:00
Mariusz Nowak
e1ee0dc6f9 fix(Config Schema): Report configuration errors as warnings
By default they behave as warnings (let process continue), while "error" gives an impression action was stopped
2020-08-19 15:47:51 +02:00
Mariusz Nowak
516603af90 refactor: Show variables resolution info less frequently
(to not pollute eventual MFA input)
2020-08-19 15:30:20 +02:00
Frédéric Barthelet
f091c07992
feat(Config Schema): AWS HTTP API schema (#8068) 2020-08-19 12:05:50 +02:00
Mariusz Nowak
4660acd324 fix(CLI): Mark 'help' as command that doesn't depend on external plugins 2020-08-07 10:40:55 +02:00
Mariusz Nowak
d8a73b8326 fix(Dashboard): Ensure service independent commands work unconditionally 2020-08-07 10:40:55 +02:00
Mariusz Nowak
f4803ee363 fix(Config Schema): Fix errors normalization for oneOf case 2020-08-04 14:29:34 +02:00
Mariusz Nowak
d171f5476d fix(Config Schema): Fix errors normalization with external refs 2020-08-04 14:29:34 +02:00
Petr Reshetin
268f714357
feat: Schema based validation of service config (#7335)
Co-authored-by: Mariusz Nowak <medyk@medikoo.com>
2020-08-03 15:41:05 +02:00
Mariusz Nowak
cf1d51dbb9 refactor(CLI): Cleanup components resolution logic 2020-07-22 09:39:35 +02:00
Mariusz Nowak
1f7534c4d8 fix(CLI): Ensure --version is only top level command option 2020-07-16 10:24:32 +02:00