Skip to content

Commit

Permalink
Update description.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrytsenko committed Apr 27, 2023
1 parent 22e8952 commit 50f1b51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=hrytsenko_json-data-spring-boot&metric=alert_status)](https://sonarcloud.io/dashboard?id=hrytsenko_json-data-spring-boot)
[![](https://jitpack.io/v/hrytsenko/json-data-spring-boot.svg)](https://jitpack.io/#hrytsenko/json-data-spring-boot)

# JSON data for Spring Boot
# JSON Data for Spring Boot

This library enables [json-data] for [Spring Boot] including serialization, validation and error handling.
The following example illustrates integration with [Spring Boot], [Spring Feign] and [Spring Sleuth]:
The following example illustrates integration with [Spring Boot], [Spring Feign] and [Spring Sleuth].

```java
@EnableFeignClients
Expand Down Expand Up @@ -63,11 +63,11 @@ class Application {
}
```

Use `ValidateRequest` to validate an input JSON entity (the first argument).
Use `ValidateResponse` to validate an output JSON entity (the return value).
Use `ValidateRequest` to validate inbound JSON entities.
Use `ValidateResponse` to validate outbound JSON entities.
Provide `ValidatorSource` to configure a resource manager for validators.

Use `WrapErrors` to wrap all unhandled exceptions into `ServiceException.InternalError`.
Use `WrapErrors` to wrap all unhandled exceptions into `ServiceException`.
Provide `CorrelationSource` to enable correlations for error responses.

[json-data]: https://github.com/hrytsenko/json-data
Expand Down

0 comments on commit 50f1b51

Please sign in to comment.