ramses-tech / ramses

RAML + Elasticsearch / Postgres / Mongodb / Your Data Store™ + Pyramid = RESTful API
http://ramses.tech
Apache License 2.0
303 stars 29 forks source link

Fix config.registry.auth_model missing properties crashing the server on startup #95

Closed oleduc closed 8 years ago

oleduc commented 8 years ago

Bug fixed: If the resource designated as the auth model is declared after a resource that depends on it in the main raml file, then config.registry.auth_model is not properly populated and the server will crash on startup.

Fix: Added an additional check when the model already exists to see if the model is designated as the auth model.