Skip to content

Commit

Permalink
Merge pull request #388 from ror-community/dev
Browse files Browse the repository at this point in the history
Merge dev to staging: Update schema URL
  • Loading branch information
lizkrznarich committed Apr 8, 2024
2 parents 8d14fc8 + 018a3d9 commit a5756fd
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 a5756fd

Please sign in to comment.