Skip to content

Instantly share code, notes, and snippets.

@cddr
Created July 12, 2016 07:59
Show Gist options
  • Save cddr/d8bfc154d353e28faf334028b57d861d to your computer and use it in GitHub Desktop.
Save cddr/d8bfc154d353e28faf334028b57d861d to your computer and use it in GitHub Desktop.
Better than avro?
(s/def ::foo-1.0 (s/keys :req [::my-string ::my-int]))
(s/def ::foo-1.1 (s/keys :req [::my-string]))
(defspec compatability-test
(prop/for-all [v1-1 (s/gen ::foo-1.1)]
(s/valid? ::foo-1.0 v1-1)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment