New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mintlify/validation

Package Overview
Dependencies
Maintainers
4
Versions
296
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.251 to 0.1.252

dist/mint-config/validateConfig.d.ts

2

./dist/index.js

@@ -10,3 +10,3 @@ import { zodToJsonSchema } from 'zod-to-json-schema';

export { generateFirstIncrementalSchema, generateNextIncrementalSchema, } from './openapi/IncrementalEvaluator.js';
export { validateMintConfig } from './mint-config/validateMintConfig.js';
export * from './mint-config/validateConfig.js';
export { formatIssue } from './mint-config/formatIssue.js';

@@ -13,0 +13,0 @@ export { upgradeToDocsConfig } from './mint-config/upgrades/upgradeToDocsConfig.js';

@@ -8,3 +8,3 @@ import { DocsConfig } from './mint-config/schemas/v2/index.js';

export { generateFirstIncrementalSchema, generateNextIncrementalSchema, } from './openapi/IncrementalEvaluator.js';
export { validateMintConfig } from './mint-config/validateMintConfig.js';
export * from './mint-config/validateConfig.js';
export { formatIssue } from './mint-config/formatIssue.js';

@@ -11,0 +11,0 @@ export { upgradeToDocsConfig } from './mint-config/upgrades/upgradeToDocsConfig.js';

@@ -10,3 +10,3 @@ import { zodToJsonSchema } from 'zod-to-json-schema';

export { generateFirstIncrementalSchema, generateNextIncrementalSchema, } from './openapi/IncrementalEvaluator.js';
export { validateMintConfig } from './mint-config/validateMintConfig.js';
export * from './mint-config/validateConfig.js';
export { formatIssue } from './mint-config/formatIssue.js';

@@ -13,0 +13,0 @@ export { upgradeToDocsConfig } from './mint-config/upgrades/upgradeToDocsConfig.js';

import { z } from 'zod';
export declare const apiSchema: z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
playground: z.ZodOptional<z.ZodObject<{

@@ -32,3 +41,6 @@ display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none"]>>;

}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
playground?: {

@@ -46,3 +58,6 @@ display?: "simple" | "none" | "interactive" | undefined;

}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
playground?: {

@@ -49,0 +64,0 @@ display?: "simple" | "none" | "interactive" | undefined;

@@ -157,7 +157,22 @@ import { z } from 'zod';

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>;

@@ -267,7 +282,22 @@ export declare const decoratedAnchorSchema: z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>;

@@ -377,7 +407,22 @@ export declare const anchorsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>, "many">;

@@ -487,7 +532,22 @@ export declare const decoratedAnchorsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>, "many">;

@@ -494,0 +554,0 @@ export type AnchorsConfig = z.infer<typeof anchorsSchema>;

@@ -103,7 +103,22 @@ import { z } from 'zod';

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>;

@@ -177,7 +192,22 @@ export declare const decoratedDropdownSchema: z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>;

@@ -251,7 +281,22 @@ export declare const dropdownsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>, "many">;

@@ -325,7 +370,22 @@ export declare const decoratedDropdownsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>, "many">;

@@ -332,0 +392,0 @@ export type DropdownsConfig = z.infer<typeof dropdownsSchema>;

@@ -169,7 +169,28 @@ import { z } from 'zod';

}>, z.ZodUnion<[z.ZodObject<{
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>;
}, "strip", z.ZodTypeAny, {
openapi: (string | string[]) & (string | string[] | undefined);
openapi: (string | string[] | {
source: string;
directory?: string | undefined;
}) & (string | string[] | {
source: string;
directory?: string | undefined;
} | undefined);
}, {
openapi: (string | string[]) & (string | string[] | undefined);
openapi: (string | string[] | {
source: string;
directory?: string | undefined;
}) & (string | string[] | {
source: string;
directory?: string | undefined;
} | undefined);
}>, z.ZodLazy<z.ZodObject<{

@@ -349,7 +370,28 @@ pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;

}>, z.ZodUnion<[z.ZodObject<{
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>;
}, "strip", z.ZodTypeAny, {
openapi: (string | string[]) & (string | string[] | undefined);
openapi: (string | string[] | {
source: string;
directory?: string | undefined;
}) & (string | string[] | {
source: string;
directory?: string | undefined;
} | undefined);
}, {
openapi: (string | string[]) & (string | string[] | undefined);
openapi: (string | string[] | {
source: string;
directory?: string | undefined;
}) & (string | string[] | {
source: string;
directory?: string | undefined;
} | undefined);
}>, z.ZodLazy<z.ZodObject<{

@@ -529,7 +571,28 @@ pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;

}>, z.ZodUnion<[z.ZodObject<{
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>;
}, "strip", z.ZodTypeAny, {
openapi: (string | string[]) & (string | string[] | undefined);
openapi: (string | string[] | {
source: string;
directory?: string | undefined;
}) & (string | string[] | {
source: string;
directory?: string | undefined;
} | undefined);
}, {
openapi: (string | string[]) & (string | string[] | undefined);
openapi: (string | string[] | {
source: string;
directory?: string | undefined;
}) & (string | string[] | {
source: string;
directory?: string | undefined;
} | undefined);
}>, z.ZodLazy<z.ZodObject<{

@@ -709,7 +772,28 @@ pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;

}>, z.ZodUnion<[z.ZodObject<{
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>;
}, "strip", z.ZodTypeAny, {
openapi: (string | string[]) & (string | string[] | undefined);
openapi: (string | string[] | {
source: string;
directory?: string | undefined;
}) & (string | string[] | {
source: string;
directory?: string | undefined;
} | undefined);
}, {
openapi: (string | string[]) & (string | string[] | undefined);
openapi: (string | string[] | {
source: string;
directory?: string | undefined;
}) & (string | string[] | {
source: string;
directory?: string | undefined;
} | undefined);
}>, z.ZodLazy<z.ZodObject<{

@@ -716,0 +800,0 @@ pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;

@@ -49,7 +49,22 @@ import { z } from 'zod';

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>;

@@ -87,7 +102,22 @@ export declare const decoratedLanguageSchema: z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>;

@@ -125,7 +155,22 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>, "many">;

@@ -163,7 +208,22 @@ export declare const decoratedLanguagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>, "many">;

@@ -170,0 +230,0 @@ export type LanguagesConfig = z.infer<typeof languagesSchema>;

import { z } from 'zod';
import { pageSchema } from '../reusable/page.js';
declare const pageOrGroupSchema: z.ZodType;
declare const decoratedPageOrGroupSchema: z.ZodType;
export declare const pagesSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;

@@ -8,1 +10,4 @@ export declare const decoratedPagesSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;

export type DecoratedPagesConfig = z.infer<typeof decoratedPagesSchema>;
export type PageOrGroupConfig = z.infer<typeof pageOrGroupSchema>;
export type DecoratedPageOrGroupConfig = z.infer<typeof decoratedPageOrGroupSchema>;
export {};

@@ -103,7 +103,22 @@ import { z } from 'zod';

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>;

@@ -177,7 +192,22 @@ export declare const decoratedTabSchema: z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>;

@@ -251,7 +281,22 @@ export declare const tabsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>, "many">;

@@ -325,7 +370,22 @@ export declare const decoratedTabsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>, "many">;

@@ -332,0 +392,0 @@ export type TabsConfig = z.infer<typeof tabsSchema>;

@@ -49,7 +49,22 @@ import { z } from 'zod';

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>;

@@ -87,7 +102,22 @@ export declare const decoratedVersionSchema: z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>;

@@ -125,7 +155,22 @@ export declare const versionsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>, "many">;

@@ -163,7 +208,22 @@ export declare const decoratedVersionsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{

}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>>;
}, "strip", z.ZodTypeAny, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}, {
openapi?: string | string[] | undefined;
openapi?: string | string[] | {
source: string;
directory?: string | undefined;
} | undefined;
}>>, "many">;

@@ -170,0 +230,0 @@ export type VersionsConfig = z.infer<typeof versionsSchema>;

import { z } from 'zod';
export declare const openapiStringSchema: z.ZodEffects<z.ZodString, string, string>;
export declare const openApiSchema: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
export declare const openapiObjSchema: z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>;
export declare const openApiSchema: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
source: z.ZodEffects<z.ZodString, string, string>;
directory: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
source: string;
directory?: string | undefined;
}, {
source: string;
directory?: string | undefined;
}>]>;
export type OpenApiObjConfig = z.infer<typeof openapiObjSchema>;
export type OpenApiConfig = z.infer<typeof openApiSchema>;

@@ -33,4 +33,10 @@ import isAbsoluteUrl from 'is-absolute-url';

});
export const openapiObjSchema = z
.object({
source: openapiStringSchema,
directory: z.string().trim().optional(),
})
.strict();
export const openApiSchema = z
.union([openapiStringSchema, z.array(openapiStringSchema)])
.union([openapiStringSchema, z.array(openapiStringSchema), openapiObjSchema])
.describe('A string or an array of strings of absolute or relative urls pointing to the OpenAPI file(s)');
{
"name": "@mintlify/validation",
"version": "0.1.251",
"version": "0.1.252",
"description": "Validates mint.json files",

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

},
"gitHead": "c7f9ee676d859e5b3077b78d25f23303064ccf42"
"gitHead": "69fa039abf3b3c3d29de08eb967fea8f78fe8119"
}

@@ -19,2 +19,3 @@ # @mintlify/validation

mintValidation.validateMintConfig(configObject)
mintValidation.validateDocsConfig(configObject)
```

@@ -21,0 +22,0 @@

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

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

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

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

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

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

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

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

Sorry, the diff of this file is not supported yet

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