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: readme.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
# Summary
5
5
6
-
This library enables use of [json-data]with[Spring Boot]. It enables serialization, validation and error handling for HTTP requests and responses that use JSON entities.
6
+
This library enables [json-data]for[Spring Boot] including serialization, validation and error handling for HTTP requests and responses that use JSON entities.
7
7
8
8
# Example
9
9
@@ -71,6 +71,16 @@ class Application {
71
71
}
72
72
```
73
73
74
+
# Usage
75
+
76
+
UseJSON entities with SpringWeb and SpringFeign.
77
+
78
+
Use `ValidateRequest` to validate a JSON entity (the first argument) via JSONSchema. Use `ValidateResponse` to validate a JSON entity (the return value) via JSONSchema.
79
+
80
+
Use `WrapErrors` to wrap all exceptions in `ServiceException.InternalError` with a given error code, except those that are `ServiceException`.
81
+
82
+
Provide `CorrelationSource` to enable correlations for error responses.
0 commit comments