@ibm-cloud/openapi-ruleset-utilities
Advanced tools
Comparing version 0.0.1 to 0.0.2-rc.1
{ | ||
"name": "@ibm-cloud/openapi-ruleset-utilities", | ||
"description": "Programmatic utility functions for creating Spectral-formatted OpenAPI Rulesets", | ||
"version": "0.0.1", | ||
"version": "0.0.2-rc.1", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "private": false, |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
// A group of predefined "collections" of OpenAPI locations to validate, | ||
@@ -2,0 +7,0 @@ // to be re-used by multiple rules. |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
module.exports = { | ||
@@ -2,0 +7,0 @@ ...require('./utils'), |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const isObject = require('./is-object'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const isObject = require('./is-object'); | ||
@@ -2,0 +7,0 @@ const schemaHasConstraint = require('./schema-has-constraint'); |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
module.exports = { | ||
@@ -2,0 +7,0 @@ getPropertyNamesForSchema: require('./get-property-names-for-schema'), |
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
/** | ||
* Returns `true` if the input is a non-`null` object and not an array. | ||
@@ -3,0 +8,0 @@ */ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const isObject = require('./is-object'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const schemaHasConstraint = require('./schema-has-constraint'); | ||
@@ -2,0 +7,0 @@ const isObject = require('./is-object'); |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const schemaHasConstraint = require('./schema-has-constraint'); | ||
@@ -2,0 +7,0 @@ const schemaHasProperty = require('./schema-has-property'); |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
/* | ||
@@ -2,0 +7,0 @@ * Performs validation on a schema and all of its composed schemas. |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
/* | ||
@@ -2,0 +7,0 @@ * Performs validation on a schema and all of its nested schemas. |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const validateComposedSchemas = require('./validate-composed-schemas'); | ||
@@ -2,0 +7,0 @@ const validateNestedSchemas = require('./validate-nested-schemas'); |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { getPropertyNamesForSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { getSchemaType, SchemaType } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isArraySchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isBinarySchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isBooleanSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isByteSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isDateSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isDateTimeSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isDoubleSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isEnumerationSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isFloatSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isInt32Schema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isInt64Schema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isIntegerSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isNumberSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isObjectSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isObject } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isPrimitiveSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { isStringSchema } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { schemaHasConstraint } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { schemaHasProperty } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { schemaRequiresProperty } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
// NOTE: Duplicated from ruleset package. Need to revisit | ||
@@ -2,0 +7,0 @@ module.exports = { |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
// NOTE: Duplicated from ruleset package. Need to revisit | ||
@@ -2,0 +7,0 @@ const allSchemasDocument = require('./all-schemas-document'); |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
// NOTE: Duplicated from ruleset package. Need to revisit | ||
@@ -2,0 +7,0 @@ const { Spectral } = require('@stoplight/spectral-core'); |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { validateComposedSchemas } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { validateNestedSchemas } = require('../src'); | ||
@@ -2,0 +7,0 @@ |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Copyright 2017 - 2023 IBM Corporation. | ||
* SPDX-License-Identifier: Apache2.0 | ||
*/ | ||
const { allSchemasDocument, testRule } = require('./utils'); | ||
@@ -2,0 +7,0 @@ const { validateSubschemas } = require('../src'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103614
3070
1