Swagger Type Interface For TypeScript
Install with npm
npm install --save @types/swagger-schema-official
And use the module 'swagger-schema-official'
import * as Swagger from 'swagger-schema-official';
var mySwaggerSpec: Swagger.Spec = { /*... */ };
This module is moved to DefinitelyTyped. Add your bug fixes and improvements there.
Install Node.js and run:
npm test
MIT