UNPKG

@ibm-cloud/openapi-ruleset

Version:

Spectral ruleset for validating IBM Cloud services

24 lines (21 loc) 577 B
/** * Copyright 2017 - 2023 IBM Corporation. * SPDX-License-Identifier: Apache2.0 */ const { oas3_1 } = require('@stoplight/spectral-formats'); const { patternPropertiesCheck } = require('../functions'); const { schemas, } = require('@ibm-cloud/openapi-ruleset-utilities/src/collections'); module.exports = { description: 'Enforces certain restrictions on the use of "patternProperties" within a schema.', message: '{{error}}', given: schemas, severity: 'error', formats: [oas3_1], resolved: true, then: { function: patternPropertiesCheck, }, };