Skip to content

Commit

Permalink
Merge pull request #389 from ror-community/staging
Browse files Browse the repository at this point in the history
Merge staging to master: Update schema URL
  • Loading branch information
lizkrznarich committed Apr 8, 2024
2 parents fb9c2a1 + a5756fd commit 943060b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rorapi/common/create_update.py
Expand Up @@ -8,7 +8,7 @@
)
from rorapi.management.commands.generaterorid import check_ror_id

V2_SCHEMA = get_file_from_url("https://raw.githubusercontent.com/ror-community/ror-schema/schema-v2/ror_schema_v2_0.json")
V2_SCHEMA = get_file_from_url("https://raw.githubusercontent.com/ror-community/ror-schema/master/ror_schema_v2_0.json")


def update_record(json_input, existing_record):
Expand Down
2 changes: 1 addition & 1 deletion rorapi/common/parsers.py
Expand Up @@ -12,7 +12,7 @@ def get_file_from_url(self, url):
return rsp.json()

def parse(self, stream, media_type=None, parser_context=None):
schema = self.get_file_from_url("https://raw.githubusercontent.com/ror-community/ror-schema/schema-v2/ror_schema_v2_0.json")
schema = self.get_file_from_url("https://raw.githubusercontent.com/ror-community/ror-schema/master/ror_schema_v2_0.json")
data = super(JSONSchemaParser, self).parse(stream, media_type,
parser_context)
try:
Expand Down

0 comments on commit 943060b

Please sign in to comment.