Found 15 possible answers.
|User||Answered At||Possible Answer|
(println "connected")) (d/connect "datomic:dev://localhost:4334/test-database-nov-22-2017" dev://localhost:4334/test-database-nov-22-2017%22 ) (d/create-database "datomic:dev://localhost:4334/test-database-nov-22-2017" dev://localhost:4334/test-database-nov-22-2017%22 ) (println "about to connect") (defn -main  (:gen-class)) (:require [datomic.api :as d])
- maybe I will start there. Is there a low-friction way to convert specs to schema or does one still have to hand-ball the schema afterwards? Thanks
- I'm searching for a way to generate documentation out of my defined schema. Is there a good way to achieve this?
- is there a library there?
- Is there any tools that generate a clojure server from swagger spec?
- Does anyone know of work to generate human-readable documentation from specs?
- Is there a way to generate a server from an existing swagger json file?
- I think I got the answer(s) I was looking for, but I’ll add a bit of context here in case you have further advice: I am generating a GraphQL schema from an application schema (database schema + some extra info). I am doing this as a sequence of transformations on a “schema” map. So I start with an empty map, then generate some object types, then generate some queries, etc @noisesmith how is it inside the call to g? the result of h is passed as an argument I’ll stop there to avoid spamming this channel with unecessary details ``` (keys (:nodes hodl-config))))) (map #(gen-for-node hodl-config config %) So I have code similar to this```(apply comp The reason I was expecting to reach high number of compositions (in the low hundreds) was because some of my transformation steps should be executed for each entity type and I am composing those I wrote each transformation as a function that takes two config maps and extra options, and return a 1-arity function which takes a schema and returns a schema
- Is there a way to generate a ya da server from a swagger definition?
- how can you define or alter specs programmatically? I have my data model defined in an edn file and like to generate specs based on that => values``` (s/describe 'user/k) Exception Unable to resolve spec: :my.ns/foo clojure.spec.alpha/reg-resolve! (alpha.clj:69) (s/describe :my.ns/foo) => user/k (s/def k values)) values integer?] ```(let [k :my.ns/foo
- Is there any way of making sure that the specs I write point to other specs? I can write `(s/def ::my-spec (s/keys [:not-a-spec/key])` And `:not-a-spec/key` doesn’t have to be a spec. Can I somehow enforce that it really is a spec that it’s pointing to? Also, if I could somehow avoid defining specs twice that would be fantastic