Created
July 12, 2016 07:59
-
-
Save cddr/d8bfc154d353e28faf334028b57d861d to your computer and use it in GitHub Desktop.
Better than avro?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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