@mintlify/validation 0.1.370 → 0.1.372

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.
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { almondConfigSchema } from './themes/almond.js';
3
+ import { aspenConfigSchema } from './themes/aspen.js';
3
4
  import { lindenConfigSchema } from './themes/linden.js';
4
5
  import { mapleConfigSchema } from './themes/maple.js';
5
6
  import { mintConfigSchema } from './themes/mint.js';
@@ -12,4 +13,5 @@ export const docsConfigSchema = z.discriminatedUnion('theme', [
12
13
  willowConfigSchema,
13
14
  lindenConfigSchema,
14
15
  almondConfigSchema,
16
+ aspenConfigSchema,
15
17
  ]);
@@ -20,12 +20,12 @@ export declare const apiSchema: z.ZodObject<{
20
20
  source: string;
21
21
  directory?: string | undefined;
22
22
  }>]>>;
23
- paramFields: z.ZodOptional<z.ZodObject<{
24
- expanded: z.ZodOptional<z.ZodEnum<["all", "none"]>>;
23
+ params: z.ZodOptional<z.ZodObject<{
24
+ expanded: z.ZodOptional<z.ZodEnum<["all", "closed"]>>;
25
25
  }, "strip", z.ZodTypeAny, {
26
- expanded?: "all" | "none" | undefined;
26
+ expanded?: "all" | "closed" | undefined;
27
27
  }, {
28
- expanded?: "all" | "none" | undefined;
28
+ expanded?: "all" | "closed" | undefined;
29
29
  }>>;
30
30
  playground: z.ZodOptional<z.ZodObject<{
31
31
  display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none"]>>;
@@ -81,8 +81,8 @@ export declare const apiSchema: z.ZodObject<{
81
81
  source: string;
82
82
  directory?: string | undefined;
83
83
  } | undefined;
84
- paramFields?: {
85
- expanded?: "all" | "none" | undefined;
84
+ params?: {
85
+ expanded?: "all" | "closed" | undefined;
86
86
  } | undefined;
87
87
  playground?: {
88
88
  display?: "simple" | "none" | "interactive" | undefined;
@@ -108,8 +108,8 @@ export declare const apiSchema: z.ZodObject<{
108
108
  source: string;
109
109
  directory?: string | undefined;
110
110
  } | undefined;
111
- paramFields?: {
112
- expanded?: "all" | "none" | undefined;
111
+ params?: {
112
+ expanded?: "all" | "closed" | undefined;
113
113
  } | undefined;
114
114
  playground?: {
115
115
  display?: "simple" | "none" | "interactive" | undefined;
@@ -5,12 +5,12 @@ export const apiSchema = z
5
5
  .object({
6
6
  openapi: openApiSchema.optional(),
7
7
  asyncapi: asyncApiSchema.optional(),
8
- paramFields: z
8
+ params: z
9
9
  .object({
10
10
  expanded: z
11
- .enum(['all', 'none'])
11
+ .enum(['all', 'closed'])
12
12
  .optional()
13
- .describe('Whether to automatically expand API parameter fields, defaults to `none`.'),
13
+ .describe('The view mode of the API parameters. Defaults to `closed`.'),
14
14
  })
15
15
  .optional()
16
16
  .describe('Configurations for the API parameters'),
@@ -60,12 +60,12 @@ export declare const almondConfigSchema: z.ZodObject<{
60
60
  source: string;
61
61
  directory?: string | undefined;
62
62
  }>]>>;
63
- paramFields: z.ZodOptional<z.ZodObject<{
64
- expanded: z.ZodOptional<z.ZodEnum<["all", "none"]>>;
63
+ params: z.ZodOptional<z.ZodObject<{
64
+ expanded: z.ZodOptional<z.ZodEnum<["all", "closed"]>>;
65
65
  }, "strip", z.ZodTypeAny, {
66
- expanded?: "all" | "none" | undefined;
66
+ expanded?: "all" | "closed" | undefined;
67
67
  }, {
68
- expanded?: "all" | "none" | undefined;
68
+ expanded?: "all" | "closed" | undefined;
69
69
  }>>;
70
70
  playground: z.ZodOptional<z.ZodObject<{
71
71
  display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none"]>>;
@@ -121,8 +121,8 @@ export declare const almondConfigSchema: z.ZodObject<{
121
121
  source: string;
122
122
  directory?: string | undefined;
123
123
  } | undefined;
124
- paramFields?: {
125
- expanded?: "all" | "none" | undefined;
124
+ params?: {
125
+ expanded?: "all" | "closed" | undefined;
126
126
  } | undefined;
127
127
  playground?: {
128
128
  display?: "simple" | "none" | "interactive" | undefined;
@@ -148,8 +148,8 @@ export declare const almondConfigSchema: z.ZodObject<{
148
148
  source: string;
149
149
  directory?: string | undefined;
150
150
  } | undefined;
151
- paramFields?: {
152
- expanded?: "all" | "none" | undefined;
151
+ params?: {
152
+ expanded?: "all" | "closed" | undefined;
153
153
  } | undefined;
154
154
  playground?: {
155
155
  display?: "simple" | "none" | "interactive" | undefined;
@@ -1251,8 +1251,8 @@ export declare const almondConfigSchema: z.ZodObject<{
1251
1251
  source: string;
1252
1252
  directory?: string | undefined;
1253
1253
  } | undefined;
1254
- paramFields?: {
1255
- expanded?: "all" | "none" | undefined;
1254
+ params?: {
1255
+ expanded?: "all" | "closed" | undefined;
1256
1256
  } | undefined;
1257
1257
  playground?: {
1258
1258
  display?: "simple" | "none" | "interactive" | undefined;
@@ -1577,8 +1577,8 @@ export declare const almondConfigSchema: z.ZodObject<{
1577
1577
  source: string;
1578
1578
  directory?: string | undefined;
1579
1579
  } | undefined;
1580
- paramFields?: {
1581
- expanded?: "all" | "none" | undefined;
1580
+ params?: {
1581
+ expanded?: "all" | "closed" | undefined;
1582
1582
  } | undefined;
1583
1583
  playground?: {
1584
1584
  display?: "simple" | "none" | "interactive" | undefined;