architecture-as-code
architecture-as-code copied to clipboard
CALM CLI Server failing
Bug Report
The CALM ClI server validation is now failing and not about to load the schemas
Steps to Reproduce:
#Launch server
$ calm --version
1.0.0
$ calm server --schema-directory calm
info [calm-server]: CALM Server is running on http://localhost:3000
error [calm-server]: Failed to load schemas: TypeError: this.schemaDirectory.loadSchemas is not a function
# Curl Commands
$ curl http://127.0.0.1:3000/health | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15 100 15 0 0 7518 0 --:--:-- --:--:-- --:--:-- 15000
{
"status": "OK"
}
$ curl -H "Content-Type: application/json" -X POST http://127.0.0.1:3000/calm/validate --data @cli/test_fixtures/validation_route/valid_instantiation.json | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2301 100 34 100 2267 5092 331k --:--:-- --:--:-- --:--:-- 374k
{
"error": "Failed to load schemas"
}
Expected Result:
We expect to see the schema validate
Actual Result:
Error in the Server
Environment:
MacOS