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

@mintlify/validation

Package Overview
Dependencies
Maintainers
5
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mintlify/validation - npm Package Compare versions

Comparing version 0.1.38 to 0.1.39

13

dist/openapi/convertOpenApi.d.ts
import { OpenAPIV3_1 } from 'openapi-types';
import type { BodySchema, DataSchemaArray, Endpoint, HttpMethod, ResponseSchema } from './types/endpoint';
export declare const generateMessage: (path: string[], messages?: string[]) => string;
export declare class InvalidSchemaError extends Error {
constructor(message?: string);
constructor(path: string[], ...messages: string[]);
}
export declare class ImpossibleSchemaError extends Error {
constructor(message?: string);
constructor(path: string[], ...messages: string[]);
}
export declare class ConversionError extends Error {
constructor(message?: string);
constructor(path: string[], ...messages: string[]);
}
export declare const convertBody: (body?: OpenAPIV3_1.RequestBodyObject) => BodySchema;
export declare const convertResponses: (responses: OpenAPIV3_1.ResponsesObject) => ResponseSchema;
export declare const convertResponse: (response: OpenAPIV3_1.ResponseObject) => {
export declare const convertBody: (path: string[], body: OpenAPIV3_1.RequestBodyObject | undefined) => BodySchema;
export declare const convertResponses: (path: string[], responses: OpenAPIV3_1.ResponsesObject) => ResponseSchema;
export declare const convertResponse: (path: string[], response: OpenAPIV3_1.ResponseObject) => {
[contentType: string]: DataSchemaArray;
};
export declare const convertOpenAPIV3_1ToEndpoint: (spec: OpenAPIV3_1.Document, path: string, method: HttpMethod) => Endpoint | undefined;
import { OpenAPIV3_1 } from 'openapi-types';
import { ParameterSections } from './types/endpoint';
type ConvertParametersParams = {
pathParameters?: OpenAPIV3_1.ParameterObject[];
operationParameters?: OpenAPIV3_1.ParameterObject[];
export type ConvertParametersParams = {
path: string[];
method: string;
pathParameters: OpenAPIV3_1.ParameterObject[] | undefined;
operationParameters: OpenAPIV3_1.ParameterObject[] | undefined;
};
export declare const convertParameters: ({ pathParameters, operationParameters, }: ConvertParametersParams) => ParameterSections;
export {};
export declare const convertParameters: ({ path, method, pathParameters, operationParameters, }: ConvertParametersParams) => ParameterSections;
import { OpenAPIV3_1 } from 'openapi-types';
import { DataSchemaArray } from './types/endpoint';
export declare const convertSchema: (schema?: OpenAPIV3_1.SchemaObject, required?: boolean) => DataSchemaArray;
export declare const combineTopLevelSchemas: (schema1: OpenAPIV3_1.SchemaObject, schema2: OpenAPIV3_1.SchemaObject) => OpenAPIV3_1.SchemaObject;
export declare const convertSchema: (path: string[], schema: OpenAPIV3_1.SchemaObject | undefined, required?: boolean) => DataSchemaArray;
export declare const combineTopLevelSchemas: (path: string[], schema1: OpenAPIV3_1.SchemaObject, schema2: OpenAPIV3_1.SchemaObject) => OpenAPIV3_1.SchemaObject;
export declare const addKeyIfDefined: <D, K extends keyof D>(key: K, value: D[K], destination: D) => void;
export declare const copyKeyIfDefined: <D, K extends keyof D>(key: K, source: Pick<D, K>, destination: D) => void;
export declare const convertProperties: (properties?: {
export declare const convertProperties: (path: string[], properties: {
[key: string]: OpenAPIV3_1.SchemaObject;

@@ -9,0 +9,0 @@ } | undefined, required?: string[]) => {

@@ -9,6 +9,7 @@ import { OpenAPIV3_1 } from 'openapi-types';

type AddSecurityParametersParams = {
securityName: string;
securityScheme: OpenAPIV3_1.SecuritySchemeObject;
parameterSections: SecurityOption;
};
export declare const addSecurityParameters: ({ securityScheme, parameterSections, }: AddSecurityParametersParams) => void;
export declare const addSecurityParameters: ({ securityName, securityScheme, parameterSections, }: AddSecurityParametersParams) => void;
export {};
{
"name": "@mintlify/validation",
"version": "0.1.38",
"version": "0.1.39",
"description": "Validates mint.json files",

@@ -71,3 +71,3 @@ "author": "Mintlify, Inc.",

},
"gitHead": "a6779f44676fa95f77a88610f0b15070791eff68"
"gitHead": "eca5f7098e1bc0728e7c011454e4071b3ea28de4"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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