Skip to content

Commit 0584544

Browse files
committed
update commonmeta schema and dependencies
1 parent a543633 commit 0584544

File tree

4 files changed

+44
-22
lines changed

4 files changed

+44
-22
lines changed

Gemfile.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
commonmeta-ruby (3.12.1)
4+
commonmeta-ruby (3.13)
55
activesupport (>= 4.2.5, < 8.0)
66
addressable (~> 2.8.1, < 2.8.2)
77
base32-url (>= 0.7.0, < 1)
@@ -138,7 +138,7 @@ GEM
138138
mutex_m (0.2.0)
139139
namae (1.2.0)
140140
racc (~> 1.7)
141-
nokogiri (1.16.0-arm64-darwin)
141+
nokogiri (1.16.2-arm64-darwin)
142142
racc (~> 1.4)
143143
oj (3.16.3)
144144
bigdecimal (>= 3.0)
@@ -176,19 +176,19 @@ GEM
176176
rexml (~> 3.2)
177177
regexp_parser (2.9.0)
178178
rexml (3.2.6)
179-
rspec (3.12.0)
180-
rspec-core (~> 3.12.0)
181-
rspec-expectations (~> 3.12.0)
182-
rspec-mocks (~> 3.12.0)
183-
rspec-core (3.12.2)
184-
rspec-support (~> 3.12.0)
185-
rspec-expectations (3.12.3)
179+
rspec (3.13.0)
180+
rspec-core (~> 3.13.0)
181+
rspec-expectations (~> 3.13.0)
182+
rspec-mocks (~> 3.13.0)
183+
rspec-core (3.13.0)
184+
rspec-support (~> 3.13.0)
185+
rspec-expectations (3.13.0)
186186
diff-lcs (>= 1.2.0, < 2.0)
187-
rspec-support (~> 3.12.0)
188-
rspec-mocks (3.12.6)
187+
rspec-support (~> 3.13.0)
188+
rspec-mocks (3.13.0)
189189
diff-lcs (>= 1.2.0, < 2.0)
190-
rspec-support (~> 3.12.0)
191-
rspec-support (3.12.1)
190+
rspec-support (~> 3.13.0)
191+
rspec-support (3.13.0)
192192
rspec-xsd (0.1.0)
193193
nokogiri (~> 1.6)
194194
rspec (~> 3)

lib/commonmeta/schema_utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
module Commonmeta
77
module SchemaUtils
8-
COMMONMETA = File.read(File.expand_path("../../resources/commonmeta_v0.10.7.json",
8+
COMMONMETA = File.read(File.expand_path("../../resources/commonmeta_v0.10.8.json",
99
__dir__))
1010

1111
def json_schema_errors

lib/commonmeta/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Commonmeta
4-
VERSION = '3.12.1'
4+
VERSION = '3.13'
55
end
Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "https://commonmeta.org/commonmeta_v0.10.7.json",
4-
"title": "Commonmeta v0.10.7",
3+
"$id": "https://commonmeta.org/commonmeta_v0.10.8.json",
4+
"title": "Commonmeta v0.10.8",
55
"description": "JSON representation of the Commonmeta schema.",
66
"additionalProperties": false,
77
"definitions": {
@@ -118,6 +118,7 @@
118118
"Journal",
119119
"PeerReview",
120120
"PhysicalObject",
121+
"Presentation",
121122
"ProceedingsArticle",
122123
"ProceedingsSeries",
123124
"Proceedings",
@@ -266,27 +267,48 @@
266267
"description": "The container of the resource.",
267268
"type": "object",
268269
"properties": {
269-
"id": {
270+
"identifier": {
270271
"description": "The identifier for the container.",
271272
"type": "string"
272273
},
274+
"identifierType": {
275+
"description": "The identifierType for the container.",
276+
"type": "string"
277+
},
273278
"type": {
274279
"description": "The type of the container.",
275280
"type": "string",
276281
"enum": [
277282
"Book",
278283
"BookSeries",
279-
"DataCatalog",
280284
"Journal",
281-
"Periodical",
285+
"Proceedings",
282286
"ProceedingsSeries",
283287
"Repository",
288+
"DataRepository",
289+
"Periodical",
284290
"Series"
285291
]
286292
},
287293
"title": {
288294
"description": "The title of the container.",
289295
"type": "string"
296+
},
297+
"firstPage": {
298+
"description": "The first page of the resource.",
299+
"type": "string"
300+
},
301+
"lastPage": {
302+
"description": "The last page of the resource.",
303+
"type": "string"
304+
},
305+
"volume": {
306+
"description": "The volume of the resource.",
307+
"type": "string"
308+
},
309+
"issue": {
310+
"description": "The issue of the resource.",
311+
"type": "string"
290312
}
291313
}
292314
},
@@ -382,7 +404,7 @@
382404
"Reviews",
383405
"IsPreprintOf",
384406
"HasPreprint",
385-
"isSupplementTo"
407+
"IsSupplementTo"
386408
]
387409
}
388410
},
@@ -483,7 +505,7 @@
483505
"provider": {
484506
"description": "The provider of the resource. This can be a DOI registration agency or a repository.",
485507
"type": "string",
486-
"enum": ["Crossref", "DataCite", "GitHub", "JaLC", "KISTI", "mEDRA", "OP"]
508+
"enum": ["Crossref", "DataCite", "GitHub", "JaLC", "KISTI", "mEDRA", "OP", "InvenioRDM"]
487509
},
488510
"alternate_identifiers": {
489511
"description": "Alternate identifiers for the resource.",

0 commit comments

Comments
 (0)