avantation
Version:
Build OpenAPI3.0 specification from HAR
48 lines (47 loc) • 1.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
let defaultTemplate = {
openapi: '3.0.0',
info: {
version: '1.0',
title: '{title}',
description: 'TODO: Add Description'
},
servers: [
{
url: '{scheme}://{host}/{basePath}',
variables: {
scheme: {
enum: ['https', 'http'],
default: 'http'
},
basePath: {
default: '{basePath}'
}
}
}
],
tags: [],
components: {
schemas: {
ErrorModel: {
type: 'object',
properties: {
code: {
type: 'string'
}
}
}
},
securitySchemes: {
JWT: {
description: 'You can create a JSON Web Token (JWT) during auth.\nUsage format: `Bearer <JWT>`\n',
name: 'Authorization',
type: 'apiKey',
in: 'header'
}
}
},
paths: {}
};
exports.default = defaultTemplate;