You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/changelog.rst
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ Added
9
9
- Resources define their schema URN with a ``__schema__`` classvar instead of a ``schemas`` default value. :issue:`110`
10
10
- Validation that the base schema is present in ``schemas`` during SCIM context validation.
11
11
- Validation that extension schemas are known during SCIM context validation.
12
+
- Introduce SCIM exceptions hierarchy (:class:`~scim2_models.SCIMException` and subclasses) corresponding to RFC 7644 error types. :issue:`103`
13
+
- :meth:`Error.from_validation_error <scim2_models.Error.from_validation_error>` to convert Pydantic :class:`~pydantic.ValidationError` to SCIM :class:`~scim2_models.Error`.
12
14
13
15
Changed
14
16
^^^^^^^
@@ -17,6 +19,7 @@ Changed
17
19
Deprecated
18
20
^^^^^^^^^^
19
21
- Defining ``schemas`` with a default value is deprecated. Use ``__schema__ = URN("...")`` instead.
22
+
- ``Error.make_*_error()`` methods are deprecated. Use ``<Exception>.to_error()`` instead.
The exhaustive list is available in the :class:`reference <scim2_models.Error>`.
319
+
Converting from ValidationError
320
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
297
321
322
+
Use :meth:`Error.from_validation_error <scim2_models.Error.from_validation_error>` to convert a single Pydantic error to an :class:`~scim2_models.Error`:
0 commit comments