Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ibm-cloud/openapi-ruleset-utilities

Package Overview
Dependencies
Maintainers
16
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ibm-cloud/openapi-ruleset-utilities - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2-rc.1

2

package.json
{
"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');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc