Hi Dylan,

Yes, that's right. This is validation for the bidi route structure itself. 
For now, I've left it open to the bidi user whether and when to use route 
validation (although I may add it to modular in due course as you point out)

Libraries that use ring-swagger, https://github.com/metosin/ring-swagger, 
including yada, provide path parameter validation. Therefore I don't think 
it's necessary to add path parameter validation to bidi.

Regards,

Malcolm


On Tuesday, 30 June 2015 04:50:06 UTC+1, Dylan Butman wrote:
>
> Hey Malcolm,
>
> Just confirming my understand, the schema addition is to validate the bidi 
> routes themselves, not path parameters matched within the routes, right? Is 
> this something you're thinking one might do at component start, say 
> https://github.com/juxt/modular/blob/master/modules/bidi/src/modular/bidi.clj#L88
> .
>
> Best
> Dylan
>
> On Monday, June 29, 2015 at 11:47:00 AM UTC-4, Malcolm Sparks wrote:
>>
>> bidi is a routing library that lets you define the URI routes for your 
>> website as data.
>>
>> Until now, there has been no way to validate whether that data conforms 
>> to the expected structure. Not doing so can often lead to problems.
>>
>> I've just released a new version that defines a Prismatic Schema for 
>> letting you check and validate your bidi routes in your code.
>>
>> Schema validation works for both Clojure and ClojureScript, now that 
>> ClojureScript has Var instances (see 
>> https://groups.google.com/forum/#!topic/prismatic-plumbing/jqOkv_r8QZk)
>>
>> See http://github.com/juxt/bidi for further details.
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to