janloebel / json-schema-validation-starter Goto Github PK
View Code? Open in Web Editor NEWSpring Boot 2 Starter for Json Schema Validation
License: MIT License
Spring Boot 2 Starter for Json Schema Validation
License: MIT License
Hi there,
Could you please setup renovatebot or dependabot to update dependencies?
Receiving the message:
Consider defining a bean of type 'com.github.JanLoebel.jsonschemavalidation.provider.JsonSchemaProvider' in your configuration.
Application fails to start and basic context loading test fails.
Using @ComponentScan
or @EntityScan
pointing to the package doesn't fix the issue.
Using:
'org.springframework.boot' version '2.7.12'
'com.networknt:json-schema-validator:1.0.82'
'com.github.JanLoebel:json-schema-validation-starter:2.3.0'
Hi,
I have two sub relation and doesn't map from schema to object.
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"title": {
"type": "string"
}
},
"required": [
"title"
]
}
},
"required": [
"type",
"id"
]
}
},
"required": [
"data"
]
}
DTO
@JsonSchemaValidation("book.json")
public class BookDto {
private String title;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
}
Result:
{ "title": null }
Auto-configuration must be done via META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
now.
Rather than a single comma-separate list, each line contains the fully qualified name of an auto-configuration class.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#changes-to-auto-configuration
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#auto-configuration-files
Could you please setup simple GitHub CI task to run tests on each PR?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.