<FromGitter>
<grkek> That does look a bit messy but it works and it doesn't break the standard swagger definitions
<FromGitter>
<Blacksmoke16> is a good start
<FromGitter>
<grkek> I would lift a fair bit info from the method as well but then it would be problematic the way I have arranged my DSL is a bit clumsy its only good at what its doing and it doesn't really need anything more
<FromGitter>
<grkek> so I added another macro for the swagger docs generation
<FromGitter>
<Blacksmoke16> yup, way i have things setup like: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ You inherently know the method, url, arguments (their types, if its required, and default value if any), and return type [https://gitter.im/crystal-lang/crystal?at=5f86569899e1ab4dd1fa5dc1]
<FromGitter>
<Blacksmoke16> all w/o any additional annotations
<FromGitter>
<grkek> Oh my that is really nicely done!
<FromGitter>
<Blacksmoke16> prob could get fancy with refs and models as well
<FromGitter>
<grkek> Yeah but the current swagger implementation is a bit weird
<FromGitter>
<grkek> Yeah I see it is really easy to setup and gives a lot of power and control
<FromGitter>
<grkek> gg
<FromGitter>
<Blacksmoke16> indeed
deavmi has quit [Ping timeout: 272 seconds]
<FromGitter>
<Blacksmoke16> one thing i also started doing that this includes is a `Spec` module
<FromGitter>
<grkek> so you can do testing with the validator as well right?
<FromGitter>
<Blacksmoke16> file:///home/george/dev/git/athena-framework/validator/docs/Athena/Validator/Spec.html which can be included into your `spec_helper` that defines helpful test utilities for the type
<FromGitter>
<Blacksmoke16> can do something like this:
<FromGitter>
<Blacksmoke16> part of me thinks this is redundant (esp the type/default) since its in the constructor def, but part of me links having everything together in a more readable format
<FromGitter>
<Blacksmoke16> guess this is where a fancier doc sys would be nice as you could do like `@include("group")` or something :shrug:
<FromGitter>
<grkek> I am restructuring the grip code so it can be self contained
<FromGitter>
<rishavs> A question on kemal; ⏎ How does one adds multiple fragments to a layout? I want to have a sidebar which comes in a few pages and not in others. Kemal docs only talks about adding a single child view to the layout
<FromGitter>
<grkek> Its mostly about the rendering engine
<FromGitter>
<grkek> view Kilt docs
<FromGitter>
<grkek> that is what kemal uses :)
<FromGitter>
<rishavs> Thanks
_whitelogger has joined #crystal-lang
<FromGitter>
<grkek> Well I was able to officially remove the cancer caused by Kemal in the first place from Grip
<FromGitter>
<grkek> the INSTANCE = new
<FromGitter>
<grkek> cancer has been removed from grip
<FromGitter>
<grkek> Grip is now able to host as many application as you want with separate routers, handlers, pipelines and filters.
<FromGitter>
<grkek> I just need to push the changes :P
fifr is now known as lyro
lyro is now known as fifr[m]
fifr[m] is now known as fifr
yukai has quit [Ping timeout: 246 seconds]
deimos_ has quit [Quit: leaving]
deimos_ has joined #crystal-lang
deavmi_ has joined #crystal-lang
deavmi has quit [Read error: Connection reset by peer]