UNPKG

@ibm-cloud/openapi-ruleset

Version:

Spectral ruleset for validating IBM Cloud services

23 lines (20 loc) 525 B
/** * Copyright 2017 - 2023 IBM Corporation. * SPDX-License-Identifier: Apache2.0 */ const { schemas, } = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); const { oas3 } = require('@stoplight/spectral-formats'); const { arrayOfArrays } = require('../functions'); module.exports = { description: 'Array schema with items of type array should be avoided', message: '{{error}}', given: schemas, severity: 'warn', formats: [oas3], resolved: true, then: { function: arrayOfArrays, }, };