timeoutdigital / docless Goto Github PK
View Code? Open in Web Editor NEWA scala DSL to generate JSON schema and swagger documentation for your web services.
License: MIT License
A scala DSL to generate JSON schema and swagger documentation for your web services.
License: MIT License
Hello great work, but I think the example
on com.timeout.docless.swagger.Responses.Response
needs to be examples
and should be an array of responses in accordance whit the specification: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#responseObject
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"
// }
// }
// }
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;)
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
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.