'''return the given schema with all fields in the given keys which start with the given old_base_url updated so they point to the given new_base_url'''
ifisinstance(schema,dict):
updated_schema={}
forkey,valueinschema.items():
ifkeyinkeys:
ifvalue.startswith(old_base_url):
try:
# deduct referred schema name and version from ref-value