Releases: gridsmartercities/aws-lambda-decorators
Releases · gridsmartercities/aws-lambda-decorators
NonEmtpy Validator
- Added Validator to check if an optional object has an empty value.
- Fixed RegexValidator so it does not do Mandatory checks at the same time.
Type and Enum validators
- Created two new validators: Type and Enum
- Bug Fix: corrected bug when parameter name contained inexistent subpath
Custom Validators Readme
- Added info on how to create your own custom validators
Removed log handler
- Log handler removed to not interfere with AWS logger
Extracted Parameters can have None defaults
- Added an allow_none_defaults to the extract decorators, so that None defaults are understood as a value, not as not having a value. The default mode is False, so None defaults are treated as the parameter not having a value.
Extracted Null values are now added to kwargs of decorated function
- Extracted Null values are now added to kwargs of decorated function
- Bug fix: extract exceptions check if param exists
- Usage of try/except/else in extract
Exception Handlers Status Code
- ExceptionHandler objects can be created with a status code that will be returned to the client when that error happens. Until now, ExceptionHandler objects always returned 400.
Log Level
- You can now control the logging level of the decorators by adding a LOG_LEVEL environment variable. Defaulted to INFO
Beta release
- pylintrc file added to reflect Grid's coding style
- source updated to consistently use double quotes
- requirements have been simplified and version numbers removed
- (version numbers initially added to avoid a failing prospector version)
Mandatory and RegexValidators Fix
- Mandatory validator can now work with RegexValidator without raising exception.