in probe_scraper/parsers/pings.py [0:0]
def generate_definition(ping_data, repo_url, commit_hash):
serialized = ping_data.serialize()
if repo_url and commit_hash:
serialized["source_url"] = get_source_url(
serialized["defined_in"], repo_url, commit_hash
)
# the 'defined_in' structure is no longer needed
del serialized["defined_in"]
return serialized