Coder Social home page Coder Social logo

fanfaron's People

Contributors

hgwood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lanaflonperso

fanfaron's Issues

100% spec support

As of 6.3.0, I believe the only gap remaining between Fanfaron and the spec resides in the type of the items field of the Schema Object. The spec says it can either be a Schema Object, or an array of Schema Objects.

This looks like it could be solved using the same technique as with AdditionalProperties: two constructors annotated with @JsonCreator, one for each possibility. However, Jackson does not support two delegate creators for composite values, and will always select one or the other regardless of the JSON value, then fail at runtime. I don't know if there is a reason for that limitation. I'm looking into it.

An alternative solution would be to have a creator that takes a JsonNode as a parameter, and work with that. The downside is that Jackson Databind would become a compile dependency. I don't really like the idea of requiring this big library just for that.

Use lombok?

Would decrease code mass and maintenance costs, while providing a more standard API with getters and builder-style setters.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.