UNPKG

openapi-diff

Version:

A CLI tool to identify differences between Swagger/OpenAPI specs.

25 lines (24 loc) 914 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resultTypeFinder = void 0; const codeToTypeMap = { 'method.add': 'non-breaking', 'method.remove': 'breaking', 'path.add': 'non-breaking', 'path.remove': 'breaking', 'request.body.scope.add': 'non-breaking', 'request.body.scope.remove': 'breaking', 'response.body.scope.add': 'breaking', 'response.body.scope.remove': 'non-breaking', 'response.optional.header.add': 'non-breaking', 'response.optional.header.remove': 'non-breaking', 'response.required.header.add': 'non-breaking', 'response.required.header.remove': 'breaking', 'response.status-code.add': 'non-breaking', 'response.status-code.remove': 'breaking', 'unclassified.add': 'unclassified', 'unclassified.remove': 'unclassified' }; exports.resultTypeFinder = { lookup: (code) => codeToTypeMap[code] };