Skip to content

Commit

Permalink
Merge pull request #195 from ncbo/refactor/natural-language/304
Browse files Browse the repository at this point in the history
Require a list for the naturalLanguage attribute
  • Loading branch information
jvendetti authored Mar 18, 2024
2 parents a973d62 + f7673ee commit a466d53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ontologies_linked_data/models/ontology_submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class OntologySubmission < LinkedData::Models::Base
attribute :homepage
attribute :publication
attribute :uri, namespace: :omv
attribute :naturalLanguage, namespace: :omv
attribute :naturalLanguage, namespace: :omv, enforce: [:list]
attribute :documentation, namespace: :omv
attribute :version, namespace: :omv
attribute :creationDate, namespace: :omv, enforce: [:date_time], default: lambda { |record| DateTime.now }
Expand Down

0 comments on commit a466d53

Please sign in to comment.