Skip to content

Releases: gridsmartercities/aws-lambda-decorators

NonEmtpy Validator

18 Oct 07:44
e4b4589

Choose a tag to compare

  • 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

16 Oct 06:17
9209bcf

Choose a tag to compare

  • Created two new validators: Type and Enum
  • Bug Fix: corrected bug when parameter name contained inexistent subpath

Custom Validators Readme

11 Oct 10:20
6174f5d

Choose a tag to compare

  • Added info on how to create your own custom validators

Removed log handler

11 Oct 09:36

Choose a tag to compare

  • Log handler removed to not interfere with AWS logger

Extracted Parameters can have None defaults

08 Oct 09:20
31fe41a

Choose a tag to compare

  • 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

08 Oct 08:03
0633573

Choose a tag to compare

  • 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

04 Oct 10:23
15f432b

Choose a tag to compare

  • 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

04 Oct 08:00
bcf103f

Choose a tag to compare

  • You can now control the logging level of the decorators by adding a LOG_LEVEL environment variable. Defaulted to INFO

Beta release

03 Oct 13:01
9b252da

Choose a tag to compare

  • 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

01 Oct 08:12
a8ca734

Choose a tag to compare

  • Mandatory validator can now work with RegexValidator without raising exception.