UNPKG

openapi-diff

Version:

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

7 lines (6 loc) 263 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isOpenApi3Content = (specContent) => { const openApiProperty = specContent.openapi; return typeof openApiProperty === 'string' && openApiProperty.indexOf('3.') === 0; };