Skip to content

Commit

Permalink
Merge pull request #1044 from datacite/allow_valueUri_null
Browse files Browse the repository at this point in the history
Allow subjects valueUri to be null
  • Loading branch information
richardhallett authored Nov 20, 2023
2 parents ad51b2f + c772cab commit 3c80ee2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/schemas/client/subjects.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"properties": {
"classificationCode": { "type": "string" },
"schemeUri": { "type": "string" },
"valueUri": { "type": "string" },
"valueUri": {
"type": [
"string",
"null"
]
},
"lang": { "type": "string" },
"subject": { "type": "string" },
"subjectScheme": { "type": "string" }
Expand Down
2 changes: 2 additions & 0 deletions spec/requests/repositories_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@
"schemeUri" => "http://www.abs.gov.au/ausstats/[email protected]/0/6BB427AB9696C225CA2574180004463E",
"subjectScheme" => "FOR",
"lang" => "en",
"valueUri" => nil,
"classificationCode" => "001" }]
end
let(:update_attributes) do
Expand Down Expand Up @@ -437,6 +438,7 @@
"schemeUri" => "http://www.abs.gov.au/ausstats/[email protected]/0/6BB427AB9696C225CA2574180004463E",
"subject" => "80505 Web Technologies (excl. Web Search)",
"subjectScheme" => "FOR",
"valueUri" => nil,
"classificationCode" => "001"
}
])
Expand Down

0 comments on commit 3c80ee2

Please sign in to comment.