Socket
Socket
Sign inDemoInstall

openapi-schemas

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.4 to 2.1.0

4

package.json
{
"name": "openapi-schemas",
"version": "2.0.4",
"version": "2.1.0",
"description": "JSON Schemas for every version of the OpenAPI Specification",

@@ -37,4 +37,4 @@ "keywords": [

"dependencies": {
"@apidevtools/openapi-schemas": "2.0.4"
"@apidevtools/openapi-schemas": "2.1.0"
}
}

@@ -22,3 +22,5 @@ # OpenAPI Specification Schemas

| OpenAPI 3.0.x | [v3.0.x schema](https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v3.0/schema.json) | [v3.0.3 docs](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md)
| OpenAPI 3.1.x | [v3.1.x schema](https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v3.1/schema.json) | [v3.1.0 docs](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md)
All schemas are kept up-to-date with the latest official definitions via an automated CI/CD job. 🤖📦

@@ -49,2 +51,3 @@

console.log(openapi.v3); // { $schema, id, properties, definitions, ... }
console.log(openapi.v31); // { $schema, id, properties, definitions, ... }
```

@@ -55,3 +58,3 @@

```javascript
const { openapiV1, openapiV2, openapiV3 } = require("@apidevtools/openapi-schemas");
const { openapiV1, openapiV2, openapiV3, openapiV31 } = require("@apidevtools/openapi-schemas");

@@ -61,2 +64,3 @@ console.log(openapiV1); // { $schema, id, properties, definitions, ... }

console.log(openapiV3); // { $schema, id, properties, definitions, ... }
console.log(openapiV31); // { $schema, id, properties, definitions, ... }
```

@@ -67,3 +71,3 @@

```javascript
const { openapiV3 } = require("@apidevtools/openapi-schemas");
const { openapiV31 } = require("@apidevtools/openapi-schemas");
const ZSchema = require("z-schema");

@@ -75,3 +79,3 @@

// Validate an OpenAPI definition against the OpenAPI v3.0 specification
validator.validate(openapiDefinition, openapiV3);
validator.validate(openapiDefinition, openapiV31);
```

@@ -114,4 +118,6 @@

[![GitHub](https://apitools.dev/img/badges/github.svg)](https://github.com/open-source)
[![NPM](https://apitools.dev/img/badges/npm.svg)](https://www.npmjs.com/)
[![Coveralls](https://apitools.dev/img/badges/coveralls.svg)](https://coveralls.io)
[![Travis CI](https://apitools.dev/img/badges/travis-ci.svg)](https://travis-ci.com)
[![SauceLabs](https://apitools.dev/img/badges/sauce-labs.svg)](https://saucelabs.com)
[![Coveralls](https://apitools.dev/img/badges/coveralls.svg)](https://coveralls.io)
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc