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.
pull/977/head
Daniel Wagner-Hall 9 years ago
parent 4c82578820
commit b8ea5f7ffb

@ -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
)

Loading…
Cancel
Save