Socket
Socket
Sign inDemoInstall

@types/ibm-openapi-validator

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.15.0 to 0.15.1

2

ibm-openapi-validator/index.d.ts
// Type definitions for ibm-openapi-validator 0.15
// Project: https://github.com/IBM/openapi-validator#readme
// Definitions by: Rifa Achrinza <https://github.com/DefinitelyTyped>
// Definitions by: Rifa Achrinza <https://github.com/achrinza>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -5,0 +5,0 @@ // TypeScript Version: 3.0

{
"name": "@types/ibm-openapi-validator",
"version": "0.15.0",
"version": "0.15.1",
"description": "TypeScript definitions for ibm-openapi-validator",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ibm-openapi-validator",
"license": "MIT",

@@ -9,4 +10,4 @@ "contributors": [

"name": "Rifa Achrinza",
"url": "https://github.com/DefinitelyTyped",
"githubUsername": "DefinitelyTyped"
"url": "https://github.com/achrinza",
"githubUsername": "achrinza"
}

@@ -23,4 +24,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "1fb960408153d023506e29c4aa941f5366e45d0aa4bf4b13456865bae194cb18",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "ca73dc92a36ba3009dd39d662317db68da167b307ca0d0fa322ed83ed0bec174",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,39 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ibm-openapi-validator.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ibm-openapi-validator/index.d.ts)
````ts
// Type definitions for ibm-openapi-validator 0.15
// Project: https://github.com/IBM/openapi-validator#readme
// Definitions by: Rifa Achrinza <https://github.com/achrinza>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
interface validatorResultItem {
path: string;
message: string;
}
interface validatorResult {
errors: [] | [ validatorResultItem ];
warnings: [] | [ validatorResultItem ];
}
/**
* @default false
*/
type validatorParameterDefaultMode = boolean;
/**
* OpenAPI document validator
* @param openApiDoc - OpenAPI document object
* @param defaultMode - If set to true, the validator will ignore the .validaterc file and will use the [configuration defaults](https://github.com/IBM/openapi-validator#default-values).
* @returns Validation results
*/
declare function validator(openApiDoc: {[property: string]: any}, defaultMode?: validatorParameterDefaultMode): Promise<validatorResult>;
export = validator;
````
### Additional Details
* Last updated: Sat, 23 Nov 2019 02:42:24 GMT
* Last updated: Thu, 08 Jul 2021 22:41:05 GMT
* Dependencies: none

@@ -17,2 +51,2 @@ * Global values: none

# Credits
These definitions were written by Rifa Achrinza (https://github.com/DefinitelyTyped).
These definitions were written by [Rifa Achrinza](https://github.com/achrinza).

Sorry, the diff of this file is not supported yet

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