UNPKG

openapi-diff

Version:

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

24 lines (23 loc) 879 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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] };