Files
fastapi-openapi-to-postman/lib/31Xsupport/schemaUtils31X.js
Luis Tejeda d6fa8832eb Added test for 31x
Added test for 31x
2021-11-26 14:42:46 -06:00

18 lines
558 B
JavaScript

const inputValidation31X = require('./inputValidation31X'),
schemaUtilsCommon = require('../common/schemaUtilsCommon');
module.exports = {
/**
* Parses an OAS 3.1.X string/object as a YAML or JSON
* @param {YAML/JSON} openApiSpec - The OAS 3.1.x specification specified in either YAML or JSON
* @returns {Object} - Contains the parsed JSON-version of the OAS spec, or an error
* @no-unit-test
*/
parseSpec: function (openApiSpec) {
return schemaUtilsCommon.parseSpec(openApiSpec, inputValidation31X);
},
inputValidation31X
};