File tree 5 files changed +289
-113
lines changed
5 files changed +289
-113
lines changed Original file line number Diff line number Diff line change 5
5
- FIXTURE_PATH=/tmp/schema_fixture/
6
6
matrix :
7
7
- NIRUM_URL=https://github.com/spoqa/nirum/releases/download/0.3.3/nirum-linux-x86_64
8
- # - NIRUM_URL=https://nightly-builds.nirum.org/travis-builds/nirum-linux-x86_64
9
- # Nightly build is broken as of 2018-03-20
8
+ - NIRUM_URL=https://nightly-builds.nirum.org/travis-builds/nirum-linux-x86_64
10
9
install :
11
10
- pip install tox-travis
12
11
- ls -al
Original file line number Diff line number Diff line change @@ -4,7 +4,37 @@ Changelog
4
4
Version 0.3.0
5
5
-------------
6
6
7
- To be released.
7
+ - Became ready for the `Nirum 0.4.0 `__ compiler. Instances of service classes
8
+ generated by the compiler older than the version 0.4.0 is supported through
9
+ ``LegacyWsgiApp ``. Note that the constructor of ``WsgiApp `` detects
10
+ which version of compiler is the given service object generated from,
11
+ and if it's older than 0.4.0 automatically returns an instance of
12
+ ``LegacyWsgiApp `` instead of ``WsgiApp ``, for backward compatibility.
13
+
14
+ - An ``400 Bad Request `` error response for invalid method arguments became
15
+ to have a more field named ``errors `` which contains one or more errors.
16
+ Its format is like:
17
+
18
+ .. code-block :: json
19
+
20
+ {
21
+ "message" : " There are invalid arguments." ,
22
+ "errors" : [
23
+ {"path" : " .author.name" , "message" : " Expected a string." },
24
+ {"path" : " .tags" , "message" : " Expected an array." }
25
+ ]
26
+ }
27
+
28
+ - ``WsgiApp `` had been an old-style class in Python 2. It's now a new-style
29
+ class. No change on Python 3 (since there's no old-style class in Python 3.)
30
+
31
+ - Added ``MethodArgumentError `` to store multiple errors during
32
+ deserialization of method arguments.
33
+
34
+ - ``WsgiApp.error() `` and ``WsgiApp.make_error_response() `` methods became able
35
+ to take extra keyword arguments to extend the result JSON object.
36
+
37
+ __ https://github.com/spoqa/nirum/releases/tag/0.4.0
8
38
9
39
10
40
Version 0.2.2
You can’t perform that action at this time.
0 commit comments