From b8ea5f7ffb77f68a37a2dfaaae0a1ee63d5aa5ed Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Mon, 7 Dec 2015 14:28:27 +0000 Subject: [PATCH] Resolve references by default This means I can re-use this function for the swagger-UI generation I can't see why you would want un-resolved references as a consumer. --- templating/matrix_templates/units.py | 1 + 1 file changed, 1 insertion(+) diff --git a/templating/matrix_templates/units.py b/templating/matrix_templates/units.py index a2788fda..0dea40ec 100644 --- a/templating/matrix_templates/units.py +++ b/templating/matrix_templates/units.py @@ -559,6 +559,7 @@ class MatrixUnits(Units): # strip .yaml group_name = filename[:-5].replace("-", "_") api = yaml.load(f.read()) + api = resolve_references(filepath, api) api["__meta"] = self._load_swagger_meta( filepath, api, group_name )