Comments (1)
I changed
node.put("default", value.toDouble)
and things work. Doubles are doubles and ints are ints. FYI, a double can represent all ints exactly and most longs, up to 2^53. There would be problems however if the default value is something like MAX_LONG (which of course the current implementation doesn't support either).from mbknor-jackson-jsonschema.
Related Issues (20)
- Polymorphic `const` support rather than single item `enum`
- Any way to ignore @Deprecated fields when generating schema?
- Support generating multiple files instead of nesting in definitions
- Rewrite in Java, drop Scala dependencies HOT 2
- anyOf not working with array and nullableJsonSchemaDraft4
- CVE dependancies security breaches (Kotlin, jackson databind)
- Support for generating a file per class
- Proper handling of Polymorphic types when JsonTypeInfo.Id is DEDUCTION
- Support for restrictions in local definitions instead of in-lined HOT 1
- JaxbAnnotationModule and PropertyNamingStrategy conflicts HOT 1
- Generation throws java.lang.NoClassDefFoundError: javax/validation/constraints/NotBlank HOT 1
- How to document type properties used for polymorphism?
- A way to use jakarta.validation instead of javax.validation
- Security Vulnerability: Latest 1.0.39 release depends on version of Scala with known vulernability HOT 1
- Security Vulnerability: Latest 1.0.39 release depends on version of Jackson with known vulnerabilites
- Security Vulnerability: Latest 1.0.39 release depends on version of Kotlin with known vulnerabilities
- Question: Custom Type Mapping with Java
- Calling `JsonSchemaConfig.builder()` scans the entire classpath
- support Scala 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbknor-jackson-jsonschema.