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

test: remove empty definitions from swagger.json

parent e6b6c33c
Pipeline #181846 failed with stages
in 23 seconds
...@@ -1150,7 +1150,6 @@ ...@@ -1150,7 +1150,6 @@
} }
} }
}, },
"definitions": {},
"info": { "info": {
"description": "SoAR message protocol in schemas", "description": "SoAR message protocol in schemas",
"title": "SoAR Backbone Message Formats", "title": "SoAR Backbone Message Formats",
......
...@@ -11,6 +11,9 @@ const validateSchema = (schema) => { ...@@ -11,6 +11,9 @@ const validateSchema = (schema) => {
const validator = new OpenAPISchemaValidator({ version: 3 }); const validator = new OpenAPISchemaValidator({ version: 3 });
let validation = validator.validate(schema); let validation = validator.validate(schema);
validation.valid = (validation.errors.length === 0); validation.valid = (validation.errors.length === 0);
if (!validation.valid) {
console.log('errors', validation.errors);
}
return validation; return validation;
}; };
......
...@@ -1150,7 +1150,6 @@ ...@@ -1150,7 +1150,6 @@
} }
} }
}, },
"definitions": {},
"info": { "info": {
"description": "SoAR message protocol in schemas", "description": "SoAR message protocol in schemas",
"title": "SoAR Backbone Message Formats", "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