This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-28
Channels
- # arachne (2)
- # aws (5)
- # aws-lambda (5)
- # beginners (4)
- # boot (25)
- # cljs-dev (270)
- # cljsjs (1)
- # cljsrn (72)
- # clojars (5)
- # clojure (201)
- # clojure-belgium (5)
- # clojure-brasil (4)
- # clojure-italy (2)
- # clojure-korea (2)
- # clojure-russia (24)
- # clojure-spec (24)
- # clojure-uk (22)
- # clojurebridge (1)
- # clojurescript (125)
- # cloverage (3)
- # cursive (41)
- # datomic (37)
- # dirac (4)
- # emacs (2)
- # hoplon (421)
- # lein-figwheel (1)
- # leiningen (5)
- # luminus (2)
- # mount (1)
- # off-topic (18)
- # om (44)
- # om-next (4)
- # onyx (44)
- # pedestal (3)
- # proton (9)
- # re-frame (21)
- # reagent (21)
- # ring-swagger (12)
- # specter (9)
- # sql (2)
- # untangled (62)
- # vim (16)
@rickmoynihan, looking at your snippet, it looks like it should work, and I don't think that inline dereferencing will help here.
How are you calling the validator, though? The error looks like you aren't passing the whole schema to scjsv
mikka: ahh Thanks - you appear to be correct... Not sure how to resolve it though... the yaml snippet above is a small part of my swagger spec which is in a single file. How can I tell the validator to validate an array of :Users
(which references :User
)?
@miikka: My swagger schema :definitions
parses into this: structure ⬇️
Anyway, maybe the simplest thing would be to embed those definitions into a simple JSON schema and validate against that
I was hoping to do it without any additional munging - but that makes sense - I'll give it a try
hey guys does anyone have an example of how to implement a constrain swagger. I am trying to enforce that a integer value on a parameter must be greater then 60. I see a constrained option, but an example would be awesome