org.zalando.problem.violations.ConstraintViolationProblemModule Java Examples
The following examples show how to use
org.zalando.problem.violations.ConstraintViolationProblemModule.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProblemJacksonWebMvcAutoConfiguration.java From problem-spring-web with MIT License | 5 votes |
@Override public void configureMessageConverters(final List<HttpMessageConverter<?>> converters) { final ObjectMapper mapper = Jackson2ObjectMapperBuilder.json() .modules( new ProblemModule(), new ConstraintViolationProblemModule()) .build(); converters.add(new MappingJackson2HttpMessageConverter(mapper)); }
Example #2
Source File: SendMoneyExample.java From quilt with Apache License 2.0 | 5 votes |
/** * Construct an {@link ObjectMapper} that can be used to serialize and deserialize ProblemsJSON where JSON numbers * emit as non-String values. Because Problems+Json requires HTTP status codes to be serialized as numbers (and not * Strings) per RFC-7807, this ObjectMapper should not be used for payloads that involve Problems. * * @return An {@link ObjectMapper}. * * @see "https://tools.ietf.org/html/rfc7807" */ private static ObjectMapper createObjectMapperForProblemsJson() { return new ObjectMapper() .registerModule(new Jdk8Module()) .registerModule(new InterledgerModule(Encoding.BASE64)) .registerModule(new ProblemModule()) .registerModule(new ConstraintViolationProblemModule()) .configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false) .configure(JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS, false); }
Example #3
Source File: LocSpringMvcAutoConfiguration.java From loc-framework with MIT License | 4 votes |
@Bean public ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #4
Source File: JacksonConfiguration.java From tutorials with MIT License | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #5
Source File: JacksonConfiguration.java From tutorials with MIT License | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #6
Source File: JacksonConfiguration.java From tutorials with MIT License | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #7
Source File: JacksonConfiguration.java From tutorials with MIT License | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #8
Source File: JacksonConfiguration.java From 21-points with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #9
Source File: AdviceTraitTesting.java From problem-spring-web with MIT License | 4 votes |
default ObjectMapper mapper() { return new ObjectMapper() .registerModule(new ProblemModule()) .registerModule(new ConstraintViolationProblemModule()); }
Example #10
Source File: NonWebApplicationTest.java From problem-spring-web with MIT License | 4 votes |
@Test void shouldNotConfigureConstraintViolationProblemModule( @Autowired @Nullable final ConstraintViolationProblemModule module) { assertThat(module).isNull(); }
Example #11
Source File: CustomWebMvcApplicationTest.java From problem-spring-web with MIT License | 4 votes |
@Test void shouldNotConfigureConstraintViolationProblemModule( @Autowired @Nullable final ConstraintViolationProblemModule module) { assertThat(module).isNull(); }
Example #12
Source File: WebApplicationTest.java From problem-spring-web with MIT License | 4 votes |
@Test void shouldConfigureConstraintViolationProblemModule( @Autowired final ConstraintViolationProblemModule module) { assertThat(module).isNotNull(); }
Example #13
Source File: ProblemJacksonAutoConfiguration.java From problem-spring-web with MIT License | 4 votes |
@Bean public ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #14
Source File: JacksonConfiguration.java From jhipster-registry with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #15
Source File: JacksonConfiguration.java From ehcache3-samples with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #16
Source File: JacksonConfiguration.java From alchemy with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #17
Source File: JacksonConfiguration.java From jhipster-online with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #18
Source File: JacksonConfiguration.java From e-commerce-microservice with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #19
Source File: JacksonConfiguration.java From e-commerce-microservice with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #20
Source File: JacksonConfiguration.java From e-commerce-microservice with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #21
Source File: JacksonConfiguration.java From Spring-5.0-Projects with MIT License | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #22
Source File: JacksonConfiguration.java From TeamDojo with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #23
Source File: JacksonConfiguration.java From okta-jhipster-microservices-oauth-example with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #24
Source File: JacksonConfiguration.java From okta-jhipster-microservices-oauth-example with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #25
Source File: JacksonConfiguration.java From okta-jhipster-microservices-oauth-example with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #26
Source File: JacksonConfiguration.java From java-microservices-examples with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #27
Source File: JacksonConfiguration.java From java-microservices-examples with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }
Example #28
Source File: JacksonConfiguration.java From java-microservices-examples with Apache License 2.0 | 4 votes |
@Bean ConstraintViolationProblemModule constraintViolationProblemModule() { return new ConstraintViolationProblemModule(); }