@mintlify/validation 0.1.30 → 0.1.32

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.
Files changed (33) hide show
  1. package/dist/index.d.ts +4 -2
  2. package/dist/index.js +2 -1
  3. package/dist/index.js.LICENSE.txt +33 -0
  4. package/dist/{schemas → mint-config/schemas}/anchorColors.d.ts +1 -1
  5. package/dist/{schemas → mint-config/schemas}/colors.d.ts +1 -1
  6. package/dist/mint-config/types/analytics.d.ts +3 -0
  7. package/dist/mint-config/types/anchors.d.ts +3 -0
  8. package/dist/mint-config/types/colors.d.ts +3 -0
  9. package/dist/mint-config/types/config.d.ts +3 -0
  10. package/dist/mint-config/types/versions.d.ts +3 -0
  11. package/dist/mint-config/validateAnchorsWarnings.d.ts +4 -0
  12. package/dist/{utils → mint-config}/validateVersionsInNavigation.d.ts +3 -3
  13. package/dist/{utils → openapi}/convertOpenApi.d.ts +1 -1
  14. package/package.json +2 -2
  15. package/dist/types/analytics.d.ts +0 -3
  16. package/dist/types/anchors.d.ts +0 -3
  17. package/dist/types/colors.d.ts +0 -3
  18. package/dist/types/config.d.ts +0 -3
  19. package/dist/types/versions.d.ts +0 -3
  20. package/dist/utils/validateAnchorsWarnings.d.ts +0 -4
  21. /package/dist/{utils → mint-config}/common.d.ts +0 -0
  22. /package/dist/{utils → mint-config}/flattenUnionErrorMessages.d.ts +0 -0
  23. /package/dist/{utils → mint-config}/hexadecimalPattern.d.ts +0 -0
  24. /package/dist/{schemas → mint-config/schemas}/analytics.d.ts +0 -0
  25. /package/dist/{schemas → mint-config/schemas}/anchors.d.ts +0 -0
  26. /package/dist/{schemas → mint-config/schemas}/config.d.ts +0 -0
  27. /package/dist/{schemas → mint-config/schemas}/favicon.d.ts +0 -0
  28. /package/dist/{schemas → mint-config/schemas}/name.d.ts +0 -0
  29. /package/dist/{schemas → mint-config/schemas}/navigation.d.ts +0 -0
  30. /package/dist/{schemas → mint-config/schemas}/tabs.d.ts +0 -0
  31. /package/dist/{schemas → mint-config/schemas}/versions.d.ts +0 -0
  32. /package/dist/{types → mint-config/types}/navigation.d.ts +0 -0
  33. /package/dist/{types → openapi/types}/endpoint.d.ts +0 -0
@@ -0,0 +1,33 @@
1
+ /*!
2
+ * decimal.js v10.4.3
3
+ * An arbitrary-precision Decimal type for JavaScript.
4
+ * https://github.com/MikeMcl/decimal.js
5
+ * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
6
+ * MIT Licence
7
+ */
8
+
9
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
10
+
11
+ /**
12
+ * @license
13
+ * Lodash <https://lodash.com/>
14
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
15
+ * Released under MIT license <https://lodash.com/license>
16
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
17
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
18
+ */
19
+
20
+ /**
21
+ * @license Complex.js v2.1.1 12/05/2020
22
+ *
23
+ * Copyright (c) 2020, Robert Eisele (robert@xarg.org)
24
+ * Dual licensed under the MIT or GPL Version 2 licenses.
25
+ **/
26
+
27
+ /**
28
+ * @license Fraction.js v4.2.0 05/03/2022
29
+ * https://www.xarg.org/2014/03/rational-numbers-in-javascript/
30
+ *
31
+ * Copyright (c) 2021, Robert Eisele (robert@xarg.org)
32
+ * Dual licensed under the MIT or GPL Version 2 licenses.
33
+ **/
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from 'zod';
2
2
  export declare const anchorColorSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
3
3
  from: z.ZodString;
4
4
  via: z.ZodOptional<z.ZodString>;
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from 'zod';
2
2
  export declare const colorsSchema: z.ZodObject<{
3
3
  primary: z.ZodString;
4
4
  light: z.ZodOptional<z.ZodString>;
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ import { analyticsSchema } from '../schemas/analytics';
3
+ export type AnalyticsType = z.infer<typeof analyticsSchema>;
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ import { anchorsSchema } from '../schemas/anchors';
3
+ export type AnchorsType = z.infer<typeof anchorsSchema>;
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ import { colorsSchema } from '../schemas/colors';
3
+ export type ColorsType = z.infer<typeof colorsSchema>;
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ import { configSchema } from '../schemas/config';
3
+ export type ConfigType = z.infer<typeof configSchema>;
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ import { versionsSchema } from '../schemas/versions';
3
+ export type VersionsType = z.infer<typeof versionsSchema>;
@@ -0,0 +1,4 @@
1
+ import { MintValidationResults } from './common';
2
+ import { AnchorsType } from './types/anchors';
3
+ import { NavigationType } from './types/navigation';
4
+ export declare function validateAnchorsWarnings(anchors: AnchorsType | undefined, navigation: NavigationType[] | undefined): MintValidationResults;
@@ -1,5 +1,5 @@
1
- import { NavigationEntry, NavigationType } from "../types/navigation";
2
- import { VersionsType } from "../types/versions";
3
- import { MintValidationResults } from "./common";
1
+ import { MintValidationResults } from './common';
2
+ import { NavigationEntry, NavigationType } from './types/navigation';
3
+ import { VersionsType } from './types/versions';
4
4
  export declare function flattenNavigationVersions(nav: NavigationEntry[], versions?: string[]): string[];
5
5
  export declare function validateVersionsInNavigation(navigation: NavigationType[] | undefined, versions?: VersionsType | undefined): MintValidationResults;
@@ -1,5 +1,5 @@
1
1
  import { OpenAPIV3_1 } from 'openapi-types';
2
- import type { BodySchema, DataSchemaArray, Endpoint, HttpMethod, ParameterSections, ResponseSchema, SecurityOption, Server } from '../types/endpoint';
2
+ import type { BodySchema, DataSchemaArray, Endpoint, HttpMethod, ParameterSections, ResponseSchema, SecurityOption, Server } from './types/endpoint';
3
3
  export declare class InvalidSchemaError extends Error {
4
4
  constructor(message?: string);
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/validation",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "description": "Validates mint.json files",
5
5
  "author": "Mintlify, Inc.",
6
6
  "repository": {
@@ -68,5 +68,5 @@
68
68
  "webpack": "^5.75.0",
69
69
  "webpack-cli": "^5.0.1"
70
70
  },
71
- "gitHead": "b2f4e34e541548cf59d7280d790dd93e000a8e44"
71
+ "gitHead": "7df2e10cb92419779dccd1411d65f760560bf93e"
72
72
  }
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- import { analyticsSchema } from "../schemas/analytics";
3
- export type AnalyticsType = z.infer<typeof analyticsSchema>;
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- import { anchorsSchema } from "../schemas/anchors";
3
- export type AnchorsType = z.infer<typeof anchorsSchema>;
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- import { colorsSchema } from "../schemas/colors";
3
- export type ColorsType = z.infer<typeof colorsSchema>;
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- import { configSchema } from "../schemas/config";
3
- export type ConfigType = z.infer<typeof configSchema>;
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- import { versionsSchema } from "../schemas/versions";
3
- export type VersionsType = z.infer<typeof versionsSchema>;
@@ -1,4 +0,0 @@
1
- import { NavigationType } from "../types/navigation";
2
- import { AnchorsType } from "../types/anchors";
3
- import { MintValidationResults } from "./common";
4
- export declare function validateAnchorsWarnings(anchors: AnchorsType | undefined, navigation: NavigationType[] | undefined): MintValidationResults;
File without changes
File without changes
File without changes
File without changes