Skip to content

Releases: baverman/covador

0.9.23

12 Sep 09:49
Compare
Choose a tag to compare
  • [Refactor] extract item getter entity from Map.
  • [Feature] soft map type. It can describe dicts with
    unknown keys.
  • [Fix] One can pass pipes with maps into schema.

0.9.22

31 Jul 09:53
Compare
Choose a tag to compare
  • Schema introspection for view functions

      import covador
      from covador.flask import query_string
    
      @query_string(boo=int)
      def view():
          pass
    
      print(view.schema.items)
      # {'boo': <covador.types.item object at 0x7fb2c9dad208>}
    

0.9.20

19 Jun 08:30
Compare
Choose a tag to compare
  • [Break] rparams renamed to args.
  • [Fix] aiohttp and sanic.
  • [Refactor] Real integration tests with whole app starting.

0.9.17

23 Nov 12:42
Compare
Choose a tag to compare

[Fix] Ensure List validator for items with multi=True

0.9.16

15 Nov 11:55
Compare
Choose a tag to compare
  • [Break] IMPORTANT!! empty_is_none consider empty strings only. For example,
    schema(price=int)({'price': 0}) does not raises Required Item exception
    anymore.

  • [Feature/Break] Strict parsing for application/x-www-form-urlencoded,
    multipart/form-data and application/json content types.

  • [Feature] covador.vdecorator.mergeof validation decorator compositor.
    For example, all params decorators are mergeof(query_string, form).

  • [Feature] Support for multipart/form-data content type.

  • [Feature] Assume empty dictionary for json_body in case of empty request body.

  • [Feature] covador.check allows to create validators from boolean functions.

  • [Feature] Log invalid inputs for validation decorators. One can use
    COVADOR_DEBUG environment variable to enable stack traces in logs.

  • [Refactor] Extract covador.vdecorator module from covador.utils.