Skip to content

Commit

Permalink
remove ':value/type-nullable', use type description instead of type n…
Browse files Browse the repository at this point in the history
…ame.
  • Loading branch information
Yannick Scherer committed Dec 2, 2016
1 parent 72997ec commit 279db62
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/alumbra/spec/validation_errors.clj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
:directive/location-valid
:directive/name-unique

:value/type-nullable
:value/type-correct

:variable/name-unique
Expand Down Expand Up @@ -259,14 +258,14 @@
[_]
(s/keys :req [:alumbra/validation-error-class
:alumbra/variable-name
:alumbra/variable-type-name]
:alumbra/type-description]
:opt [:alumbra/operation-name]))

(defmethod validation-error-class :variable/input-type
[_]
(s/keys :req [:alumbra/validation-error-class
:alumbra/variable-name
:alumbra/variable-type-name]
:alumbra/type-description]
:opt [:alumbra/operation-name]))

(defmethod validation-error-class :variable/exists
Expand All @@ -282,17 +281,8 @@
:alumbra/variable-name]
:opt [:alumbra/operation-name]))

(s/def :alumbra/variable-type-name
:alumbra/type-name)

;; ### Types

(defmethod validation-error-class :value/type-nullable
[_]
(s/keys :req [:alumbra/validation-error-class
:alumbra/value
:alumbra/type-description]))

(defmethod validation-error-class :value/type-correct
[_]
(s/keys :req [:alumbra/validation-error-class
Expand Down

0 comments on commit 279db62

Please sign in to comment.