@loopback/openapi-spec
Version:
TypeScript type definitions for OpenAPI Spec/Swagger documents.
22 lines • 681 B
JavaScript
;
// Copyright IBM Corp. 2017,2018. All Rights Reserved.
// Node module: @loopback/openapi-spec
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Create an empty OpenApiSpec object that's still a valid Swagger document.
*/
function createEmptyApiSpec() {
return {
swagger: '2.0',
basePath: '/',
info: {
title: 'LoopBack Application',
version: '1.0.0',
},
paths: {},
};
}
exports.createEmptyApiSpec = createEmptyApiSpec;
//# sourceMappingURL=openapi-spec-v2.js.map