get_schema_url only works on object types now, so change some code to meet the new api