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

@ibm-cloud/openapi-ruleset

Package Overview
Dependencies
Maintainers
13
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.11.1 to 0.12.0

src/functions/request-body-name.js

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# @ibm-cloud/openapi-ruleset [0.12.0](https://github.com/IBM/openapi-validator/compare/@ibm-cloud/openapi-ruleset@0.11.1...@ibm-cloud/openapi-ruleset@0.12.0) (2022-04-13)
### Features
* **request-body-name:** add new request-body-name rule ([#419](https://github.com/IBM/openapi-validator/issues/419)) ([4494537](https://github.com/IBM/openapi-validator/commit/44945375d208dca023161610a260e9b6d668320a))
## @ibm-cloud/openapi-ruleset [0.11.1](https://github.com/IBM/openapi-validator/compare/@ibm-cloud/openapi-ruleset@0.11.0...@ibm-cloud/openapi-ruleset@0.11.1) (2022-04-13)

@@ -2,0 +9,0 @@

2

package.json
{
"name": "@ibm-cloud/openapi-ruleset",
"description": "Spectral ruleset for validating IBM Cloud services",
"version": "0.11.1",
"version": "0.12.0",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "private": false,

@@ -17,2 +17,3 @@ const arrayOfArrays = require('./array-of-arrays');

const propertyInconsistentNameAndType = require('./property-inconsistent-name-and-type');
const requestBodyName = require('./request-body-name');
const requiredProperty = require('./required-property');

@@ -44,2 +45,3 @@ const responseExampleProvided = require('./response-example-provided');

propertyInconsistentNameAndType,
requestBodyName,
requiredProperty,

@@ -46,0 +48,0 @@ responseExampleProvided,

@@ -119,2 +119,3 @@ const { oas3 } = require('@stoplight/spectral-formats');

ibmRules.propertyInconsistentNameAndType,
'request-body-name': ibmRules.requestBodyName,
'request-body-object': ibmRules.requestBodyObject,

@@ -121,0 +122,0 @@ 'response-error-response-schema': ibmRules.responseErrorResponseSchema,

@@ -27,2 +27,3 @@ const acceptParameter = require('./accept-parameter');

const propertyInconsistentNameAndType = require('./property-inconsistent-name-and-type');
const requestBodyName = require('./request-body-name');
const requestBodyObject = require('./request-body-object');

@@ -65,2 +66,3 @@ const responseErrorResponseSchema = require('./response-error-response-schema');

propertyInconsistentNameAndType,
requestBodyName,
requestBodyObject,

@@ -67,0 +69,0 @@ responseErrorResponseSchema,

const checkCompositeSchemaForConstraint = require('./check-composite-schema-for-constraint');
const checkCompositeSchemaForProperty = require('./check-composite-schema-for-property');
const isDeprecated = require('./is-deprecated');
const isFormMimeType = require('./is-form-mimetype');
const isJsonMimeType = require('./is-json-mimetype');
const isObject = require('./is-object');

@@ -14,2 +16,4 @@ const isSdkExcluded = require('./is-sdk-excluded');

isDeprecated,
isFormMimeType,
isJsonMimeType,
isObject,

@@ -16,0 +20,0 @@ isSdkExcluded,

@@ -39,2 +39,3 @@ module.exports = {

],
'x-codegen-request-body-name': 'drink',
requestBody: {

@@ -41,0 +42,0 @@ content: {

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