import { convert } from "@scalar/postman-to-openapi";
//#region src/v2/features/command-palette/helpers/get-openapi-from-postman.ts
/**
* Converts a Postman collection JSON string to an OpenAPI specification document.
*
* This function transforms a Postman collection into a valid OpenAPI 3.1 document
* that can be used throughout the application. The convert function handles parsing
* and transformation internally.
*
* Returns null if the conversion fails due to invalid Postman collection structure
*/
var getOpenApiFromPostman = (postmanJson, convertOptions) => {
	try {
		return convert(postmanJson, convertOptions);
	} catch {
		return null;
	}
};
//#endregion
export { getOpenApiFromPostman };

//# sourceMappingURL=get-openapi-from-postman.js.map