Skip to content

Commit

Permalink
Merge pull request #17 from seasidesparrow/main
Browse files Browse the repository at this point in the history
fix: alters key names in contrib to use underscore in place of hyphen
  • Loading branch information
seasidesparrow authored May 18, 2023
2 parents 94e2042 + 01916dd commit c051245
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions adsingestschema/Contrib.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"surname": {
"type": "string"
},
"given-name": {
"given_name": {
"type": "string"
},
"middle-name": {
"middle_name": {
"type": "string"
},
"prefix": {
Expand All @@ -24,7 +24,7 @@
"pubraw": {
"type": "string"
},
"native-lang": {
"native_lang": {
"type": "string"
},
"collab": {
Expand Down
2 changes: 1 addition & 1 deletion adsingestschema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ def ads_schema_validator():

validator = Draft7Validator(schema=schema, resolver=resolver)

return validator
return validator
6 changes: 3 additions & 3 deletions test_data/gcnc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": {
"surname": "Kruehler",
"given-name": "T."
"given_name": "T."
},
"affiliation": [
{
Expand All @@ -28,7 +28,7 @@
{
"name": {
"surname": "Greiner",
"given-name": "J."
"given_name": "J."
},
"affiliation": [
{
Expand All @@ -39,7 +39,7 @@
{
"name": {
"surname": "Kann",
"given-name": "D.A."
"given_name": "D.A."
},
"affiliation": [
{
Expand Down
6 changes: 3 additions & 3 deletions test_data/gcnc_fails.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"name": {
"surname": "Kruehler",
"given-name": "T."
"given_name": "T."
},
"affiliation": [
{
Expand All @@ -28,7 +28,7 @@
{
"name": {
"surname": "Greiner",
"given-name": "J."
"given_name": "J."
},
"affiliation": [
{
Expand All @@ -39,7 +39,7 @@
{
"name": {
"surname": "Kann",
"given-name": "D.A."
"given_name": "D.A."
},
"affiliation": [
{
Expand Down

0 comments on commit c051245

Please sign in to comment.