This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # beginners (71)
- # boot (148)
- # cider (21)
- # cljs-dev (2)
- # cljsjs (35)
- # clojure (212)
- # clojure-russia (42)
- # clojure-spec (36)
- # clojure-uk (28)
- # clojurescript (18)
- # cursive (2)
- # datascript (20)
- # datomic (2)
- # hoplon (2)
- # off-topic (355)
- # om (2)
- # onyx (1)
- # protorepl (1)
- # reagent (34)
- # ring-swagger (6)
- # rum (8)
- # sql (4)
- # untangled (64)
- # vim (22)
- # yada (1)
clojure.spec yep! Thanks for the heads up, I would never have found it so early, and it is extremely useful for what I want to do. Still a bit dense for me to see immediately how to implement all of Table Schema’s
constraints options, but likely that is a matter of time. From my first reading though I think I'll be able to implementation most of https://github.com/frictionlessdata/jsontableschema-py/tree/master/jsontableschema/types and https://github.com/frictionlessdata/jsontableschema-py/tree/master/jsontableschema/constraints using
Does anyone here have experience with JSON Schema ( http://json-schema.org/ )?
I use it extensively, including in the lib I’m currently porting to Clojure. I can find several Clojure libs for it ( https://github.com/bigmlcom/closchema https://github.com/metosin/scjsv https://github.com/tatut/json-schema ), but from a quick glance I’m not sure they are mature (some disclaimers, don’t seem actively maintained, etc.). I need a quite mature library as I use JSON Schema to its fullest (`$ref`,
oneOf, JSON Pointers, etc.).
There is a very mature Java lib for JSON Schema at https://github.com/daveclayton/json-schema-validator but as I’m quite new to Clojure I was hoping to find a Clojure implementation.
Can anyone recommend one of the Clojure implementations, or, recommend to wrap the Java implementation?
@notanon : here you have the respons from the external api : https://www.refheap.com/
I think I will have some copies of the specs I have because the specs that I have are from another call to the api and the checks are different. There I only check for the objectNumber where I now have to check the name of the painter , the title and the description of the painting
Another question : Can I "convert" this
artObjects-id:response in specs. or will I break
(s/conform .... ) with this change
No, I cannot , when I do this :
(s/def artObjects-id:artObject (s/keys :req-un [::objectNumber]))
@sb, on line 70 you have
users is a map. Change to just
@henriklundahl: thanks, I check it!
For some reason I can't connect to localhost addresses on my dev computer anymore so I am using another computer in the same network to view website I am generating. But now I have problem that I can't seem to make figwheel recognize when I have connected to the website. I have tired all sorts of things but nothing has been working
my project clj is this http://pastebin.com/3su5wPWe
@seancorfield with your solution. Do I understand it right that the specs are all in seperate files which haves seperate namespaces ?
@neurogoo I would try to fix that localhost problem first before I make a workaround that introduces new problems that might even have to do with your localhost problem 😉
I still would like to get the remote access working for for example when I try to debug with phone, but for some reason now localhost works after I set the websocket url
@neurogoo Looking at your
project.clj, looks like you're referencing
192.168.*.*. FYI, that is a local network only IP address assigned by your router, and isn't accessible from outside your local network. That may be part of your issue with your phone. Also, in general, those addresses are pretty unreliable.
Ah, yes I am aware of that, but my phone and other computer as using the same wifi so that should not be problem
And I can access the website from other computers. Problem is that figwheel tries to use localhost address for some reason to connect back and so it fails
For example, a default Mac OS X install's default firewall config will block almost all incoming traffic.
Have you considered https://localtunnel.github.io/www/ just as a sanity check to rule out routing issues?
That's what I usually use when I don't want to deal with the madness that is NAT, firewalls, routing, etc.
To be clear, I don't expect it to fix your situation, but I do expect it will let you confirm/refute whether it's a routing related issue.
Well with localtunnel there is still the problem with it trying to connect <ws://localhost:3449/figwheel-ws> and failing in that.
And where that's not possible, could you potentially have a configurable URL interpolated in?
I don't know, I thought that webaddress would be something that figwheel sets up and what would be dependent on webhost-url I set, but it does not seem to be
That may be a matter of digging into docs/source. Sorry that I am not familiar with this stack specifically.
Well thanks anyway for your help @mingp 🙂 I have been pretty frustrated with all the problems I have had with this project, but at least now I have at least some connection working
@henriklundahl: Thanks works! I mixed two type of tutorials.. that was the problem. I didn’t see.. 👍
How can I define two resource path at hiccup? (resources “/”) jump to “public/”, but if I would like to use very different admin template how to possible, just drop under public/ folder with “/admin” path or possible to use similar level dir?
if you wanted ../public/admin change (compojure.route/resources "/admin") to (compojure.route/resources "/public/admin")