Skip to content

Commit

Permalink
update commonmeta schema and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Feb 4, 2024
1 parent a543633 commit 0584544
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 22 deletions.
26 changes: 13 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
commonmeta-ruby (3.12.1)
commonmeta-ruby (3.13)
activesupport (>= 4.2.5, < 8.0)
addressable (~> 2.8.1, < 2.8.2)
base32-url (>= 0.7.0, < 1)
Expand Down Expand Up @@ -138,7 +138,7 @@ GEM
mutex_m (0.2.0)
namae (1.2.0)
racc (~> 1.7)
nokogiri (1.16.0-arm64-darwin)
nokogiri (1.16.2-arm64-darwin)
racc (~> 1.4)
oj (3.16.3)
bigdecimal (>= 3.0)
Expand Down Expand Up @@ -176,19 +176,19 @@ GEM
rexml (~> 3.2)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rspec-support (~> 3.13.0)
rspec-support (3.13.0)
rspec-xsd (0.1.0)
nokogiri (~> 1.6)
rspec (~> 3)
Expand Down
2 changes: 1 addition & 1 deletion lib/commonmeta/schema_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module Commonmeta
module SchemaUtils
COMMONMETA = File.read(File.expand_path("../../resources/commonmeta_v0.10.7.json",
COMMONMETA = File.read(File.expand_path("../../resources/commonmeta_v0.10.8.json",
__dir__))

def json_schema_errors
Expand Down
2 changes: 1 addition & 1 deletion lib/commonmeta/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Commonmeta
VERSION = '3.12.1'
VERSION = '3.13'
end
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://commonmeta.org/commonmeta_v0.10.7.json",
"title": "Commonmeta v0.10.7",
"$id": "https://commonmeta.org/commonmeta_v0.10.8.json",
"title": "Commonmeta v0.10.8",
"description": "JSON representation of the Commonmeta schema.",
"additionalProperties": false,
"definitions": {
Expand Down Expand Up @@ -118,6 +118,7 @@
"Journal",
"PeerReview",
"PhysicalObject",
"Presentation",
"ProceedingsArticle",
"ProceedingsSeries",
"Proceedings",
Expand Down Expand Up @@ -266,27 +267,48 @@
"description": "The container of the resource.",
"type": "object",
"properties": {
"id": {
"identifier": {
"description": "The identifier for the container.",
"type": "string"
},
"identifierType": {
"description": "The identifierType for the container.",
"type": "string"
},
"type": {
"description": "The type of the container.",
"type": "string",
"enum": [
"Book",
"BookSeries",
"DataCatalog",
"Journal",
"Periodical",
"Proceedings",
"ProceedingsSeries",
"Repository",
"DataRepository",
"Periodical",
"Series"
]
},
"title": {
"description": "The title of the container.",
"type": "string"
},
"firstPage": {
"description": "The first page of the resource.",
"type": "string"
},
"lastPage": {
"description": "The last page of the resource.",
"type": "string"
},
"volume": {
"description": "The volume of the resource.",
"type": "string"
},
"issue": {
"description": "The issue of the resource.",
"type": "string"
}
}
},
Expand Down Expand Up @@ -382,7 +404,7 @@
"Reviews",
"IsPreprintOf",
"HasPreprint",
"isSupplementTo"
"IsSupplementTo"
]
}
},
Expand Down Expand Up @@ -483,7 +505,7 @@
"provider": {
"description": "The provider of the resource. This can be a DOI registration agency or a repository.",
"type": "string",
"enum": ["Crossref", "DataCite", "GitHub", "JaLC", "KISTI", "mEDRA", "OP"]
"enum": ["Crossref", "DataCite", "GitHub", "JaLC", "KISTI", "mEDRA", "OP", "InvenioRDM"]
},
"alternate_identifiers": {
"description": "Alternate identifiers for the resource.",
Expand Down

0 comments on commit 0584544

Please sign in to comment.