Verified Commit 0bc01bdd authored by Dan Jones's avatar Dan Jones
Browse files

test: remove empty definitions from swagger.json

parent e6b6c33c
2 merge requests!30Resolve "Release v0.2",!29Resolve "SPINE Support"
Pipeline #181846 failed with stages
in 23 seconds
......@@ -1150,7 +1150,6 @@
}
}
},
"definitions": {},
"info": {
"description": "SoAR message protocol in schemas",
"title": "SoAR Backbone Message Formats",
......
......@@ -11,6 +11,9 @@ const validateSchema = (schema) => {
const validator = new OpenAPISchemaValidator({ version: 3 });
let validation = validator.validate(schema);
validation.valid = (validation.errors.length === 0);
if (!validation.valid) {
console.log('errors', validation.errors);
}
return validation;
};
......
......@@ -1150,7 +1150,6 @@
}
}
},
"definitions": {},
"info": {
"description": "SoAR message protocol in schemas",
"title": "SoAR Backbone Message Formats",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment