@mintlify/validation 0.1.59 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -6
- package/dist/index.js +17 -41
- package/dist/mint-config/common.js +1 -4
- package/dist/mint-config/flattenUnionErrorMessages.js +1 -5
- package/dist/mint-config/hexadecimalPattern.js +1 -4
- package/dist/mint-config/schemas/analytics.d.ts +0 -104
- package/dist/mint-config/schemas/analytics.js +28 -31
- package/dist/mint-config/schemas/anchorColors.d.ts +0 -1
- package/dist/mint-config/schemas/anchorColors.js +13 -16
- package/dist/mint-config/schemas/anchors.d.ts +7 -56
- package/dist/mint-config/schemas/anchors.js +17 -20
- package/dist/mint-config/schemas/apiReference.d.ts +0 -2
- package/dist/mint-config/schemas/apiReference.js +18 -21
- package/dist/mint-config/schemas/basics.d.ts +0 -11
- package/dist/mint-config/schemas/basics.js +37 -50
- package/dist/mint-config/schemas/colors.d.ts +0 -1
- package/dist/mint-config/schemas/colors.js +18 -21
- package/dist/mint-config/schemas/config.d.ts +13 -14
- package/dist/mint-config/schemas/config.js +38 -41
- package/dist/mint-config/schemas/favicon.js +2 -5
- package/dist/mint-config/schemas/integrations.d.ts +0 -6
- package/dist/mint-config/schemas/integrations.js +4 -7
- package/dist/mint-config/schemas/navigation.d.ts +15 -2
- package/dist/mint-config/schemas/navigation.js +22 -22
- package/dist/mint-config/schemas/tabs.d.ts +0 -13
- package/dist/mint-config/schemas/tabs.js +7 -10
- package/dist/mint-config/schemas/versions.d.ts +0 -13
- package/dist/mint-config/schemas/versions.js +7 -10
- package/dist/mint-config/validateAnchorsWarnings.d.ts +3 -4
- package/dist/mint-config/validateAnchorsWarnings.js +5 -9
- package/dist/mint-config/validateVersionsInNavigation.d.ts +4 -5
- package/dist/mint-config/validateVersionsInNavigation.js +6 -11
- package/dist/openapi/convertOpenApi.d.ts +1 -1
- package/dist/openapi/convertOpenApi.js +23 -31
- package/dist/openapi/convertParameters.d.ts +1 -1
- package/dist/openapi/convertParameters.js +11 -15
- package/dist/openapi/convertSchema.d.ts +1 -1
- package/dist/openapi/convertSchema.js +61 -72
- package/dist/openapi/convertSecurity.d.ts +1 -1
- package/dist/openapi/convertSecurity.js +8 -13
- package/dist/openapi/convertServers.d.ts +1 -1
- package/dist/openapi/convertServers.js +1 -5
- package/dist/openapi/types/endpoint.js +1 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +17 -10
- package/dist/mint-config/types/enums.d.ts +0 -4
- package/dist/mint-config/types/enums.js +0 -4
- package/dist/mint-config/types/index.d.ts +0 -12
- package/dist/mint-config/types/index.js +0 -2
- package/dist/mint-config/types/navigation.d.ts +0 -13
- package/dist/mint-config/types/navigation.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/validation",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.60",
|
|
4
4
|
"description": "Validates mint.json files",
|
|
5
5
|
"author": "Mintlify, Inc.",
|
|
6
6
|
"bugs": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"mint",
|
|
13
13
|
"validation"
|
|
14
14
|
],
|
|
15
|
-
"type": "
|
|
15
|
+
"type": "module",
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public",
|
|
18
18
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,17 +23,20 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"jest": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
26
|
+
"preset": "ts-jest/presets/default-esm",
|
|
27
|
+
"resolver": "ts-jest-resolver",
|
|
28
|
+
"testEnvironment": "node",
|
|
29
|
+
"moduleDirectories": [
|
|
30
|
+
"node_modules",
|
|
31
|
+
"<rootDir>/"
|
|
32
|
+
]
|
|
32
33
|
},
|
|
33
34
|
"scripts": {
|
|
34
35
|
"prepare": "npm run build",
|
|
35
36
|
"build": "tsc --project tsconfig.build.json",
|
|
36
|
-
"test": "
|
|
37
|
+
"test:types": "tsc --noEmit",
|
|
38
|
+
"test:jest": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest",
|
|
39
|
+
"test": "npm run test:types && npm run test:jest",
|
|
37
40
|
"lint": "eslint . --cache",
|
|
38
41
|
"format": "prettier \"./src/**/*.ts\" --write",
|
|
39
42
|
"format:check": "prettier \"./src/**/*.ts\" --check"
|
|
@@ -44,6 +47,7 @@
|
|
|
44
47
|
"zod-to-json-schema": "^3.20.3"
|
|
45
48
|
},
|
|
46
49
|
"peerDependencies": {
|
|
50
|
+
"@mintlify/models": "0.0.25",
|
|
47
51
|
"openapi-types": "12.x"
|
|
48
52
|
},
|
|
49
53
|
"devDependencies": {
|
|
@@ -52,6 +56,7 @@
|
|
|
52
56
|
"@babel/preset-typescript": "^7.18.6",
|
|
53
57
|
"@mintlify/eslint-config": "1.0.3",
|
|
54
58
|
"@mintlify/eslint-config-typescript": "1.0.7",
|
|
59
|
+
"@mintlify/models": "0.0.26",
|
|
55
60
|
"@mintlify/prettier-config": "1.0.1",
|
|
56
61
|
"@mintlify/ts-config": "1.0.7",
|
|
57
62
|
"@trivago/prettier-plugin-sort-imports": "3.x",
|
|
@@ -60,16 +65,18 @@
|
|
|
60
65
|
"@typescript-eslint/eslint-plugin": "5.x",
|
|
61
66
|
"@typescript-eslint/parser": "5.x",
|
|
62
67
|
"babel-jest": "^29.3.1",
|
|
68
|
+
"cross-env": "^7.0.3",
|
|
63
69
|
"eslint": "8.x",
|
|
64
70
|
"eslint-config-prettier": "8.x",
|
|
65
71
|
"eslint-plugin-unused-imports": "2.x",
|
|
66
72
|
"jest": "^29.3.1",
|
|
67
73
|
"openapi-types": "^12.1.0",
|
|
68
74
|
"prettier": "2.x",
|
|
75
|
+
"ts-expect": "^1.3.0",
|
|
69
76
|
"ts-loader": "^9.4.2",
|
|
70
77
|
"typescript": "^4.8.2",
|
|
71
78
|
"webpack": "^5.75.0",
|
|
72
79
|
"webpack-cli": "^5.0.1"
|
|
73
80
|
},
|
|
74
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "1a17dd9dcd1b9a928ad1cd592a20c426c011bcd1"
|
|
75
82
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export type ModeToggleType = 'dark' | 'light' | (string & {});
|
|
2
|
-
export type NavbarLinkType = 'github' | 'link' | (string & {});
|
|
3
|
-
export type ApiAuthMethodType = 'key' | 'bearer' | 'basic' | (string & {});
|
|
4
|
-
export type ApiPlaygroundModeType = 'show' | 'simple' | 'hide' | (string & {});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type { ConfigType } from '../schemas/config';
|
|
2
|
-
export type { AnalyticsType, AmplitudeConfigInterface, ClearbitConfigInterface, FathomConfigInterface, GoogleAnalyticsConfigInterface, GoogleTagManagerConfigInterface, HotjarConfigInterface, KoalaConfigInterface, LogrocketConfigInterface, MixpanelConfigInterface, PirschConfigInterface, PostHogConfigInterface, PlausibleConfigInterface, } from '../schemas/analytics';
|
|
3
|
-
export type { AnchorsType, AnchorType, TopAnchorType } from '../schemas/anchors';
|
|
4
|
-
export type { ApiConfigType } from '../schemas/apiReference';
|
|
5
|
-
export type { FeedbackType, FooterSocialsType, IconType, LogoType, NavbarLink, } from '../schemas/basics';
|
|
6
|
-
export type { ColorsType } from '../schemas/colors';
|
|
7
|
-
export type { GradientType } from '../schemas/anchorColors';
|
|
8
|
-
export type { IntegrationsType, IntercomType, FrontchatType } from '../schemas/integrations';
|
|
9
|
-
export type { TabType, PrimaryTabType } from '../schemas/tabs';
|
|
10
|
-
export type { VersionsType, VersionType } from '../schemas/versions';
|
|
11
|
-
export type { ModeToggleType, NavbarLinkType, ApiAuthMethodType, ApiPlaygroundModeType, } from './enums';
|
|
12
|
-
export type { MintNavigation, MintNavigationGroup, MintNavigationGroupChild, NavigationEntry, NavigationType, } from './navigation';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type NavigationEntry = string | NavigationType;
|
|
2
|
-
export type NavigationType = {
|
|
3
|
-
group: string;
|
|
4
|
-
pages: NavigationEntry[];
|
|
5
|
-
version?: string;
|
|
6
|
-
};
|
|
7
|
-
export type MintNavigation = MintNavigationGroup[];
|
|
8
|
-
export type MintNavigationGroup = {
|
|
9
|
-
group: string;
|
|
10
|
-
version?: string;
|
|
11
|
-
pages: MintNavigationGroupChild[];
|
|
12
|
-
};
|
|
13
|
-
export type MintNavigationGroupChild = string | MintNavigationGroup;
|