def get_expanded_schema(self, schema_name):
if schema_name not in self.expanded_schemas:<EOL><INDENT>fn = self.get_schema_file(schema_name)<EOL>schemas_folder = self.get_schemas_folder()<EOL>base_uri = self.get_schema_path(schemas_folder)<EOL>with open(fn) as f:<EOL><INDENT>jsn_schema = jsonref.load(f, base_uri=base_uri)<EOL>self.expanded_schemas[schema_name] = jsn_schema<EOL><DEDENT><DEDENT>else:<EOL><INDENT>jsn_schema = self.expanded_schemas[schema_name]<EOL><DEDENT>return jsn_schema<EOL>
Return a schema file with all $ref properties expanded