Skip to content

Commit

Permalink
identifier fields should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Nov 15, 2020
1 parent de6f36c commit 95fa06c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4438,12 +4438,12 @@ type Identifier {
"""
The value of the identifier.
"""
identifier: String!
identifier: String

"""
The type of identifier.
"""
identifierType: String!
identifierType: String

"""
The url of the identifier.
Expand Down
4 changes: 2 additions & 2 deletions app/graphql/types/identifier_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class IdentifierType < BaseObject
description "Information about identifiers"

field :identifier_type, String, null: false, hash_key: "identifierType", description: "The type of identifier."
field :identifier, String, null: false, description: "The value of the identifier."
field :identifier_type, String, null: true, hash_key: "identifierType", description: "The type of identifier."
field :identifier, String, null: true, description: "The value of the identifier."
field :identifier_url, String, null: true, hash_key: "identifierUrl", description: "The url of the identifier."
end

0 comments on commit 95fa06c

Please sign in to comment.