Giter VIP home page Giter VIP logo

docless's People

Contributors

afiore avatar algd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docless's Issues

Use custom circe decoders to generate schema

Not sure if it's possible, but it would be nice if we could use custom decoders so that the field names in our case classes weren't tied to the attributes they represent in the json. For example:

  case class Cat(a: String, b: Int)
  implicit val decoder: Decoder[Cat] = Decoder.forProduct2("the_a", "the_b")(Cat.apply)
  println(JsonSchema.deriveFor[Cat].asJson.pretty(Printer.spaces2))

//  {
//    "type" : "object",
//    "required" : [
//    "a",  <--- should be the_a
//    "b"   <--- should be the_b
//    ],
//    "properties" : {
//      "a" : {
//      "type" : "string"
//    },
//      "b" : {
//      "type" : "integer",
//      "format" : "int32"
//    }
//    }
//  }

Invalid Superclass assertion while compiling

While compiling a project which included this project I am getting the below exception:
java.lang.AssertionError: assertion failed: Invalid superClass in Lcom/timeout/docless/swagger/Type$Integer$;: Some(Lenumeratum/EnumEntry;)

Any plans to upgrade for use with new Circe versions?

I get errors like
java.lang.NoSuchMethodError: io.circe.Encoder$.encodeMapLike(Lio/circe/KeyEncoder;Lio/circe/Encoder;)Lio/circe/ObjectEncoder;
when trying to use this library with a newer version of Circe (0.9.0) in my project.

Would be great to see a new release supporting Circe 0.9.0

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.