datacite/lupo

View on GitHub
app/graphql/types/date_type.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class DateType < BaseObject
  description "Information about dates"

  field :date,
        String,
        null: false, description: "Date information for this resource"
  field :date_type,
        String,
        null: true, hash_key: "dateType", description: "The type of date"
end

# Acceptable values for date_type are from the DataCite Metadata Schema:
# Accepted Available Copyrighted Collected Created Issued Submitted Updated
# Valid Withdrawn Other