plumatic/schema
View on GitHub ↗ ★ 2,465 Clojure
Clojure(Script) library for declarative data description and validation
40 mentions on Hacker News by 34 people: 0 stories, 40 comments · first 2013-09-05 · latest 2022-10-05
20082026
-
…lacks critical developer mass and some libraries / laziness overcomplicate certain usecases. [1] https://github.com/plumatic/schema
comment by nextos · 2022-10-05 · in Building a Startup on Clojure -
…universe, but they always bring huge improvements that require completely new APIs. For instance: https://github.com/plumatic/schema -> https://github.com/metosin/malli https://github.com/juxt/bidi -> https://github.com/metosin/reitit…
comment by krn · 2022-07-30 · in Clojure needs a Rails -
…get any help at compile-time, but functions called with bad values will fail in very clear ways): https://github.com/plumatic/schema
comment by tsm · 2021-05-06 · in Six years of professional Clojure development -
…check that something is a string and not a blank one. There are two different libraries that do it: https://github.com/plumatic/schema/blob/ddb54c87dea6926c6d73... https://github.com/clojure/spec.alpha/blob/eb49d429e85b6878a... Honestly I…
comment by vemv · 2020-07-29 · in RBS, Ruby’s new type signature language -
…refactoring is easy, or sometimes we just replace the service altogether - We leverage Schema ( https://github.com/plumatic/schema ) and/or clojure.spec ( https://clojure.org/guides/spec ) to annotate functions and data schemas, but it's…
comment by hcarvalhoalves · 2020-07-23 · in Nubank acquires Cognitect -
…spec that feel off to me. I'll try to enumerate some: - verbosity (I think schema does this better https://github.com/plumatic/schema ) - because it tries to not be about validating types of inputs and outputs, and rather treats everything…
comment by keithasaurus · 2020-02-21 · in State of Clojure 2020 -
Schema is a pretty nice alternative: https://github.com/plumatic/schema
comment by keithasaurus · 2020-02-21 · in State of Clojure 2020 -
…more popular is Schema which focuses on annotating and validating the structure of lists and maps: https://github.com/plumatic/schema
comment by kyllo · 2019-06-20 · in Open-sourcing Sorbet: a fast, powerful type checker for Ruby -
…apply something like schema [2] or spec [3]. [1]: https://github.com/clojure/core.typed [2]: https://github.com/plumatic/schema [3]: https://clojure.org/about/spec
comment by jakebasile · 2019-02-07 · in State of Clojure Survey 2019 Analysis -
…saying that he is going to add to Spec something that have already been implemented in Clojure https://github.com/plumatic/schema . So at the end of the talk, what's the point?
comment by logistark · 2018-11-30 · in Maybe Not [video] -
…costs (and that freedom of choice itself has a cost). It's okay to have different preferences. [0] https://github.com/plumatic/schema [1] https://clojure.org/guides/spec#_entity_maps [2] https://clojure.org/reference/protocols [3]…
comment by rasteau · 2018-10-07 · in A Year in Clojure -
I guess for #2 you didn't get a chance to try out Schema? (Now at https://github.com/plumatic/schema ) Or if so, I wonder what you found lacking in it? http://www.lispcast.com/clojure.spec-vs-schema does a good job highlighting some…
comment by Jach · 2017-06-22 · in Clojure Newbie Guide (2015) -
I've been using plumatic schema: https://github.com/plumatic/schema in conjunction with compojure-api. It provides a nice way to validate data coming into my REST endpoints. I'm currently using Postgres, but I'd probably still make use of…
comment by jcadam · 2017-03-31 · in Fourteen Months with Clojure -
…the project for over a year now. We had no trouble with type refactoring. We use Schema ( https://github.com/plumatic/schema ) to validate the data at the edges, and the REPL to run code as we write it. Type errors simply have never been a…
comment by yogthos · 2016-10-23 · in Static typing will not save us from broken software -
…contract notation is also a very welcome change from other similar approaches in my opinion. [1]: https://github.com/plumatic/schema
comment by pyritschard · 2016-05-23 · in Clojure.spec – Rationale and Overview -
…[1] https://docs.racket-lang.org/ts-guide/ [2] https://github.com/clojure/core.typed [3] https://github.com/plumatic/schema
comment by hencq · 2016-05-10 · in A Farewell to FRP -
One other thing I will say about Schema ( https://github.com/plumatic/schema ): while it's a lifesaver in a lot of ways, its mere existence really does expose some of Clojure's deficiencies when it comes to the type system (or lack…
comment by eterps · 2016-04-19 · in Clojure, the Good Parts -
…set it up effectively. Otherwise, lots of great points. One other thing I will say about Schema ( https://github.com/plumatic/schema ): while it's a lifesaver in a lot of ways, its mere existence really does expose some of Clojure's…
comment by ddellacosta · 2016-04-19 · in Clojure, the Good Parts -
…arbitrary predicate functions (such that you could do `instanceof('foo')` or `hasattr('foo')`). [1] https://github.com/plumatic/schema
comment by hcarvalhoalves · 2016-03-18 · in Type hints – a mediocre programmer's reaction (2015) -
…of the most important tools in my toolbox and completely changed the way I approach debugging. [1]: https://github.com/plumatic/schema [2]: https://clojars.org/day8/re-frame-tracer [3]: https://clojars.org/gnl/re-frame-tracer [4]:…
comment by gnl · 2016-03-16 · in JSX is no longer my friend -
…differences in the runtimes, of course. Some examples: https://github.com/stuartsierra/component https://github.com/plumatic/schema (uses .cljx, the precursor to .cljc)
comment by 147 · 2016-01-28 · in State of Clojure 2015: Survey Results -
Any relation to the Clojure Schema? https://github.com/Prismatic/schema
comment by lsh · 2015-12-23 · in 'New' Python modules of 2015 -
…- use figwheel - use cljs-devtools with Canary for debugging - use Schema to provide faint typing - https://github.com/Prismatic/schema - perhaps use clairvoyant for debugging https://github.com/spellhouse/clairvoyant - use timbre for…
comment by MikeOfAu · 2015-12-03 · in What Holds Me Back from ClojureScript -
…smart, friendly folks doing interesting things. [0] https://github.com/bhauman/lein-figwheel [1] https://github.com/Prismatic/schema
comment by erikcw · 2015-12-03 · in What Holds Me Back from ClojureScript -
I don't know about for CL but there is for Clojure: https://github.com/Prismatic/schema
comment by kyllo · 2015-12-01 · in XML fever (2008) -
I've had good luck with prismatic schema https://github.com/Prismatic/schema , which seems to be along a similar direction. It's fairly low commitment and can lead to big gains fairly quickly. I assume this would be similar.
comment by lbradstreet · 2015-10-17 · in Structural Typing for Clojure -
…effort of learning it. A nice middle ground between nothing, and full-blown type annotations. [0] https://github.com/Prismatic/schema
comment by numlocked · 2015-09-24 · in Why we’re no longer using Core.typed -
…design goal. Check out the test for examples of how to insert your own leaf generators or wrappers: https://github.com/Prismatic/schema/blob/master/test/clj/sch... Does that seem like it will meet your needs?
comment by w01fe · 2015-09-01 · in Schema graduates from alpha with support for Clojure test data generation -
…possible, and what's missing, in other languages. So yeah...learn some Clojure. Just do it. [0] https://github.com/Prismatic/schema
comment by numlocked · 2015-08-26 · in The Beauty of Clojure -
…as :pre and :post assertions in every function you annotate, then be turned off for production use. https://github.com/Prismatic/schema That's why I come back to Clojure every time, if I need anything, it's available as a library. Need…
comment by JackMorgan · 2015-03-09 · in Pixie: A sweet Clojure-ish language -
Also Prismatic's schema. It achieves some of the same goals for why you would want strong typing: https://github.com/Prismatic/schema
comment by threeseed · 2015-03-09 · in Pixie: A sweet Clojure-ish language -
Clojure supports strong typing if you want it: https://github.com/Prismatic/schema https://github.com/clojure/core.typed These are both libraries that you can choose to use. Both Typed Clojure and Schema are more powerful than Java's type…
comment by kyleburton · 2015-02-27 · in Clojure at a Bank – Moving from Java (2012) -
…small, pure, function for correctness ... which is pretty close to, if not the same as, TDD. [1] https://github.com/Prismatic/schema
comment by mtrimpe · 2014-03-25 · in Clojure 1.6 released -
…especially now that it has fantastic validators and coercion libraries, such as Prismatic's Schema: https://github.com/prismatic/schema This is, by far, the most intelligent data exchange system I have ever seen. It offers a richer…
comment by lkrubner · 2014-03-03 · in Q – A Data Language -
In Clojure you can use schema ( https://github.com/Prismatic/schema ) which does the same thing without needing a separate language.
comment by islon · 2014-03-03 · in Q – A Data Language -
…Schema which allows validation that a data structure matches a schema of (possibly nested) types: https://github.com/prismatic/schema and this now offers coercion, which makes this fantastic for importing JSON from other sub-systems or…
comment by lkrubner · 2014-01-19 · in Lisp: More is less -
…typing The schema library form the prismatic guys should be what you want, its pretty powerful. https://github.com/prismatic/schema Aria Haghighi - Prismatic's Schema for Server and Client-Side Data Shape Declaration and Validation (…
comment by nickik · 2014-01-14 · in Scala – 1 Star Would Not Program Again -
…There are also some interesting experiments in enforcing specific data structures: https://github.com/prismatic/schema Much effort has been made to make contract programming easy in Clojure: https://github.com/clojure/core.contracts And if…
comment by lkrubner · 2014-01-14 · in Scala – 1 Star Would Not Program Again -
…yet had a need to use a framework written in Clojure (although Pedestal[2] seems interesting). [1] https://github.com/Prismatic/schema [2] http://pedestal.io/
comment by dm3 · 2013-11-28 · in Clojure: The JFDI language -
…data is that we can use Clojure code to process them and generate things like Objective-C classes ( https://github.com/Prismatic/schema/blob/d82bf0b049fc1205a81... ) and Avro specifications. It will be our glue to declarations in other…
comment by aria · 2013-09-05 · in Schema for Clojure(Script) Data Shape Declaration and Validation