Skip to content

Commit

Permalink
include argument default values in analyzed schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Scherer committed May 10, 2017
1 parent cff250e commit 3bea40d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/alumbra/spec/analyzed_schema.clj
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
(s/def ::argument
(s/merge
(s/keys :req-un [:alumbra/argument-name
::inline-directives])
::inline-directives]
:opt-un [:alumbra/default-value])
::typed))

(s/def ::typed
Expand Down
3 changes: 0 additions & 3 deletions src/alumbra/spec/common.clj
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@
(s/def :alumbra/argument-value
:alumbra/value)

(s/def :alumbra/argument-default-value
:alumbra/scalar-value)

(s/def :alumbra/default-value
:alumbra/constant)

Expand Down
2 changes: 1 addition & 1 deletion src/alumbra/spec/schema.clj
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
(s/keys :req [:alumbra/argument-name
:alumbra/argument-type
:alumbra/metadata]
:opt [:alumbra/argument-default-value
:opt [:alumbra/default-value
:alumbra/directives]))

;; ## Input Type Definition
Expand Down

0 comments on commit 3bea40d

Please sign in to comment.