Skip to content

Commit

Permalink
Merge pull request #233 from M3nin0/feature/harvester-schema
Browse files Browse the repository at this point in the history
harvest: update harvester schema
  • Loading branch information
M3nin0 authored Nov 8, 2024
2 parents 523b3d7 + 1784778 commit d171b58
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.8, 3.9]
requirements-level: [dev] # current scenario for the GEO Knowledge Hub
db-service: [postgresql13]
search-service: [opensearch2]
Expand Down
4 changes: 1 addition & 3 deletions geo_rdm_records/base/services/schemas/harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ class HarvesterSoftwareSchema(Schema):

version = SanitizedUnicode(required=True)

repository = fields.URL(required=True)


class HarvesterOriginSchema(Schema):
"""Harvester origin schema."""

name = SanitizedUnicode(required=True)

url = fields.URL(required=True)
id = SanitizedUnicode(required=True)


class HarvesterSchema(Schema):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@
},
"version": {
"type": "string"
},
"repository": {
"type": "string"
}
}
},
Expand All @@ -134,7 +131,7 @@
"name": {
"type": "string"
},
"url": {
"id": {
"type": "string"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,6 @@
},
"version": {
"type": "text"
},
"repository": {
"type": "text"
}
}
},
Expand All @@ -323,7 +320,7 @@
"name": {
"type": "text"
},
"url": {
"id": {
"type": "text"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@
},
"version": {
"type": "text"
},
"repository": {
"type": "text"
}
}
},
Expand All @@ -279,7 +276,7 @@
"name": {
"type": "text"
},
"url": {
"id": {
"type": "text"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@
},
"version": {
"type": "string"
},
"repository": {
"type": "string"
}
}
},
Expand All @@ -127,7 +124,7 @@
"name": {
"type": "string"
},
"url": {
"id": {
"type": "string"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,6 @@
},
"version": {
"type": "text"
},
"repository": {
"type": "text"
}
}
},
Expand All @@ -276,7 +273,7 @@
"name": {
"type": "text"
},
"url": {
"id": {
"type": "text"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@
},
"version": {
"type": "text"
},
"repository": {
"type": "text"
}
}
},
Expand All @@ -236,7 +233,7 @@
"name": {
"type": "text"
},
"url": {
"id": {
"type": "text"
}
}
Expand Down

0 comments on commit d171b58

Please sign in to comment.