blob: dcc10d8b834de1083cc942bf2eafad9e13ce8a54 (
plain) (
tree)
|
|
import * as chai from 'chai';
import * as dirtyChai from 'dirty-chai';
import { api } from '../src/api';
import { validate } from 'openapi-schema-validation';
chai.config.includeStack = true;
chai.use(dirtyChai);
describe('SRA OpenAPI Schema', () => {
it('should be a valid OpenAPI schema', () => {
const result = validate(api, 3);
chai.expect(result.errors).to.have.length(0);
});
});
|