swagger
swagger copied to clipboard
Swagger contains a OpenAPI / Swagger universal documentation generator and HTTP server handler.
Add creation of Swagger::Object by some object instance (Related and insipred by #18) Allow creation of Swagger::Object by something like that : ```crystal struct User property id, nickname, username, email,...
This PR based on the work done on #23. It allows to use a ref in a property object, as defined by the OpenAPI v3 spec. ```Crystal builder.add(Swagger::Object.new("User", "object")) builder.add(...
I dig how macro works in Crystal and done a simple Reflect class, but Crystal can not accept Any Class or Struct as args of method. (also thanks @jhass in...
The OpenAPI JSON schema can be used to complement compliance validation: https://github.com/OAI/OpenAPI-Specification/tree/master/schemas/v3.0