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

    @types/ibm-openapi-validator

TypeScript definitions for ibm-openapi-validator


Version published
Weekly downloads
161
increased by9.52%
Maintainers
1
Install size
4.55 kB
Created
Weekly downloads
 

Readme

Source

Installation

npm install --save @types/ibm-openapi-validator

Summary

This package contains type definitions for ibm-openapi-validator (https://github.com/IBM/openapi-validator#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/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/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: Thu, 08 Jul 2021 22:41:05 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Rifa Achrinza.

FAQs

Last updated on 08 Jul 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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