From 95fa06cfc897bf65effe662bb2575cf9a81c6a6f Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sun, 15 Nov 2020 14:23:34 +0100 Subject: [PATCH] identifier fields should be optional --- app/graphql/schema.graphql | 4 ++-- app/graphql/types/identifier_type.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/graphql/schema.graphql b/app/graphql/schema.graphql index 0065c474f..32543dbcd 100644 --- a/app/graphql/schema.graphql +++ b/app/graphql/schema.graphql @@ -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. diff --git a/app/graphql/types/identifier_type.rb b/app/graphql/types/identifier_type.rb index cb6384c44..c4e248dd4 100644 --- a/app/graphql/types/identifier_type.rb +++ b/app/graphql/types/identifier_type.rb @@ -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