openapi-modifier
Version:
This package allows you to automate the process of modifying OpenAPI specifications by applying a set of predefined rules
8 lines (7 loc) • 344 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkIsArraySchema = void 0;
const checkIsArraySchema = (schema) => {
return !!schema && typeof schema === 'object' && 'type' in schema && schema.type === 'array' && 'items' in schema && !!schema.items;
};
exports.checkIsArraySchema = checkIsArraySchema;