@@ -24,9 +24,8 @@ export type JsonObject = { [key: string]: unknown };
24
24
25
25
export const ZodDate = z . union ( [
26
26
z . string ( ) ,
27
- z . object ( { value : z . string ( ) , format : z . string ( ) } ) . passthrough ( ) . required ( {
28
- value : true ,
29
- } ) ,
27
+ z . object ( { value : z . string ( ) , format : z . string ( ) } ) . passthrough ( ) . partial ( )
28
+ . required ( { value : true } ) ,
30
29
] ) ;
31
30
32
31
export const ZodMathMethods = z . enum (
@@ -40,9 +39,8 @@ export const ZodPandocFormatOutputFile = z.union([z.string(), z.literal(null)]);
40
39
export const ZodPandocFormatFilters = z . array (
41
40
z . union ( [
42
41
z . string ( ) ,
43
- z . object ( { type : z . string ( ) , path : z . string ( ) } ) . passthrough ( ) . required ( {
44
- path : true ,
45
- } ) ,
42
+ z . object ( { type : z . string ( ) , path : z . string ( ) } ) . passthrough ( ) . partial ( )
43
+ . required ( { path : true } ) ,
46
44
z . object ( {
47
45
type : z . string ( ) ,
48
46
path : z . string ( ) ,
@@ -56,7 +54,7 @@ export const ZodPandocFormatFilters = z.array(
56
54
"post-render" ,
57
55
] as const ,
58
56
) ,
59
- } ) . passthrough ( ) . required ( { path : true , at : true } ) ,
57
+ } ) . passthrough ( ) . partial ( ) . required ( { path : true , at : true } ) ,
60
58
z . object ( { type : z . enum ( [ "citeproc" ] as const ) } ) . strict ( ) ,
61
59
] ) ,
62
60
) ;
@@ -133,7 +131,7 @@ export const ZodGiscusConfiguration = z.object({
133
131
} ) . strict ( ) . partial ( ) ,
134
132
] ) ,
135
133
language : z . string ( ) ,
136
- } ) . strict ( ) . required ( { repo : true } ) ;
134
+ } ) . strict ( ) . partial ( ) . required ( { repo : true } ) ;
137
135
138
136
export const ZodDocumentCommentsConfiguration = z . union ( [
139
137
z . literal ( false ) ,
@@ -143,7 +141,7 @@ export const ZodDocumentCommentsConfiguration = z.union([
143
141
label : z . string ( ) ,
144
142
theme : z . string ( ) ,
145
143
"issue-term" : z . string ( ) ,
146
- } ) . strict ( ) . required ( { repo : true } ) ,
144
+ } ) . strict ( ) . partial ( ) . required ( { repo : true } ) ,
147
145
giscus : z . lazy ( ( ) => ZodGiscusConfiguration ) ,
148
146
hypothesis : z . union ( [
149
147
z . boolean ( ) ,
@@ -169,7 +167,7 @@ export const ZodDocumentCommentsConfiguration = z.union([
169
167
z . array ( z . string ( ) ) ,
170
168
] ) ,
171
169
icon : z . string ( ) ,
172
- } ) . passthrough ( ) . required ( {
170
+ } ) . passthrough ( ) . partial ( ) . required ( {
173
171
apiUrl : true ,
174
172
authority : true ,
175
173
grantToken : true ,
@@ -189,7 +187,7 @@ export const ZodDocumentCommentsConfiguration = z.union([
189
187
userid : z . string ( ) ,
190
188
displayName : z . string ( ) ,
191
189
} ) . passthrough ( ) . partial ( ) ,
192
- } ) . passthrough ( ) . required ( { user : true } ) ,
190
+ } ) . passthrough ( ) . partial ( ) . required ( { user : true } ) ,
193
191
requestConfigFromFrame : z . object ( {
194
192
origin : z . string ( ) ,
195
193
ancestorLevel : z . number ( ) ,
@@ -232,7 +230,7 @@ export const ZodProjectServe = z.object({
232
230
args : z . string ( ) ,
233
231
env : z . object ( { } ) . passthrough ( ) . partial ( ) ,
234
232
ready : z . string ( ) ,
235
- } ) . strict ( ) . required ( { cmd : true , ready : true } ) ;
233
+ } ) . strict ( ) . partial ( ) . required ( { cmd : true , ready : true } ) ;
236
234
237
235
export const ZodPublish = z . object ( {
238
236
netlify : z . array ( z . lazy ( ( ) => ZodPublishRecord ) ) ,
@@ -650,7 +648,7 @@ export const ZodChapterItem = z.union([
650
648
z . object ( {
651
649
part : z . string ( ) ,
652
650
chapters : z . array ( z . lazy ( ( ) => ZodNavigationItem ) ) ,
653
- } ) . passthrough ( ) . required ( { part : true } ) ,
651
+ } ) . passthrough ( ) . partial ( ) . required ( { part : true } ) ,
654
652
] ) ;
655
653
656
654
export const ZodChapterList = z . array ( z . lazy ( ( ) => ZodChapterItem ) ) ;
@@ -662,7 +660,7 @@ export const ZodOtherLinks = z.array(
662
660
icon : z . string ( ) ,
663
661
rel : z . string ( ) ,
664
662
target : z . string ( ) ,
665
- } ) . passthrough ( ) . required ( { text : true , href : true } ) ,
663
+ } ) . passthrough ( ) . partial ( ) . required ( { text : true , href : true } ) ,
666
664
) ;
667
665
668
666
export const ZodCrossrefLabelsSchema = z . string ( ) ;
@@ -756,7 +754,7 @@ export const ZodWebsiteAbout = z.object({
756
754
"image-width" : z . string ( ) ,
757
755
"image-shape" : z . enum ( [ "rectangle" , "round" , "rounded" ] as const ) ,
758
756
links : z . array ( z . lazy ( ( ) => ZodNavigationItem ) ) ,
759
- } ) . strict ( ) . required ( { template : true } ) ;
757
+ } ) . strict ( ) . partial ( ) . required ( { template : true } ) ;
760
758
761
759
export const ZodWebsiteListing = z . object ( {
762
760
id : z . string ( ) ,
@@ -1224,9 +1222,8 @@ export const ZodSemver = z.string().regex(
1224
1222
1225
1223
export const ZodQuartoDate = z . union ( [
1226
1224
z . string ( ) ,
1227
- z . object ( { format : z . string ( ) , value : z . string ( ) } ) . strict ( ) . required ( {
1228
- value : true ,
1229
- } ) ,
1225
+ z . object ( { format : z . string ( ) , value : z . string ( ) } ) . strict ( ) . partial ( )
1226
+ . required ( { value : true } ) ,
1230
1227
] ) ;
1231
1228
1232
1229
export const ZodProjectProfile = z . object ( {
@@ -1248,7 +1245,7 @@ export const ZodNotebookViewSchema = z.object({
1248
1245
title : z . union ( [ z . string ( ) , z . boolean ( ) ] ) ,
1249
1246
url : z . string ( ) ,
1250
1247
"download-url" : z . string ( ) ,
1251
- } ) . passthrough ( ) . required ( { notebook : true } ) ;
1248
+ } ) . passthrough ( ) . partial ( ) . required ( { notebook : true } ) ;
1252
1249
1253
1250
export const ZodCodeLinksSchema = z . union ( [
1254
1251
z . boolean ( ) ,
@@ -1317,7 +1314,7 @@ export const ZodBrandStringLightDark = z.union([
1317
1314
export const ZodBrandLogoExplicitResource = z . object ( {
1318
1315
path : z . string ( ) ,
1319
1316
alt : z . string ( ) ,
1320
- } ) . strict ( ) . required ( { path : true } ) ;
1317
+ } ) . strict ( ) . partial ( ) . required ( { path : true } ) ;
1321
1318
1322
1319
export const ZodBrandLogoResource = z . union ( [
1323
1320
z . string ( ) ,
@@ -1564,10 +1561,10 @@ export const ZodBrandFontFile = z.object({
1564
1561
path : z . string ( ) ,
1565
1562
weight : z . lazy ( ( ) => ZodBrandFontWeight ) ,
1566
1563
style : z . lazy ( ( ) => ZodBrandFontStyle ) ,
1567
- } ) . passthrough ( ) . required ( { path : true } ) ,
1564
+ } ) . passthrough ( ) . partial ( ) . required ( { path : true } ) ,
1568
1565
] ) ,
1569
1566
) ,
1570
- } ) . strict ( ) . required ( { files : true , family : true , source : true } ) ;
1567
+ } ) . strict ( ) . partial ( ) . required ( { files : true , family : true , source : true } ) ;
1571
1568
1572
1569
export const ZodBrandFontFamily = z . string ( ) ;
1573
1570
0 commit comments