Skip to content

Commit e16014e

Browse files
committed
Ready for Nirum 0.4.0
1 parent fee896b commit e16014e

File tree

5 files changed

+289
-113
lines changed

5 files changed

+289
-113
lines changed

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ env:
55
- FIXTURE_PATH=/tmp/schema_fixture/
66
matrix:
77
- 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
109
install:
1110
- pip install tox-travis
1211
- ls -al

CHANGES.rst

+31-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,37 @@ Changelog
44
Version 0.3.0
55
-------------
66

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
838

939

1040
Version 0.2.2

0 commit comments

Comments
 (0)