@@ -24,9 +24,8 @@ export type JsonObject = { [key: string]: unknown };
2424
2525export const ZodDate = z . union ( [
2626 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 } ) ,
3029] ) ;
3130
3231export const ZodMathMethods = z . enum (
@@ -40,9 +39,8 @@ export const ZodPandocFormatOutputFile = z.union([z.string(), z.literal(null)]);
4039export const ZodPandocFormatFilters = z . array (
4140 z . union ( [
4241 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 } ) ,
4644 z . object ( {
4745 type : z . string ( ) ,
4846 path : z . string ( ) ,
@@ -56,7 +54,7 @@ export const ZodPandocFormatFilters = z.array(
5654 "post-render" ,
5755 ] as const ,
5856 ) ,
59- } ) . passthrough ( ) . required ( { path : true , at : true } ) ,
57+ } ) . passthrough ( ) . partial ( ) . required ( { path : true , at : true } ) ,
6058 z . object ( { type : z . enum ( [ "citeproc" ] as const ) } ) . strict ( ) ,
6159 ] ) ,
6260) ;
@@ -133,7 +131,7 @@ export const ZodGiscusConfiguration = z.object({
133131 } ) . strict ( ) . partial ( ) ,
134132 ] ) ,
135133 language : z . string ( ) ,
136- } ) . strict ( ) . required ( { repo : true } ) ;
134+ } ) . strict ( ) . partial ( ) . required ( { repo : true } ) ;
137135
138136export const ZodDocumentCommentsConfiguration = z . union ( [
139137 z . literal ( false ) ,
@@ -143,7 +141,7 @@ export const ZodDocumentCommentsConfiguration = z.union([
143141 label : z . string ( ) ,
144142 theme : z . string ( ) ,
145143 "issue-term" : z . string ( ) ,
146- } ) . strict ( ) . required ( { repo : true } ) ,
144+ } ) . strict ( ) . partial ( ) . required ( { repo : true } ) ,
147145 giscus : z . lazy ( ( ) => ZodGiscusConfiguration ) ,
148146 hypothesis : z . union ( [
149147 z . boolean ( ) ,
@@ -169,7 +167,7 @@ export const ZodDocumentCommentsConfiguration = z.union([
169167 z . array ( z . string ( ) ) ,
170168 ] ) ,
171169 icon : z . string ( ) ,
172- } ) . passthrough ( ) . required ( {
170+ } ) . passthrough ( ) . partial ( ) . required ( {
173171 apiUrl : true ,
174172 authority : true ,
175173 grantToken : true ,
@@ -189,7 +187,7 @@ export const ZodDocumentCommentsConfiguration = z.union([
189187 userid : z . string ( ) ,
190188 displayName : z . string ( ) ,
191189 } ) . passthrough ( ) . partial ( ) ,
192- } ) . passthrough ( ) . required ( { user : true } ) ,
190+ } ) . passthrough ( ) . partial ( ) . required ( { user : true } ) ,
193191 requestConfigFromFrame : z . object ( {
194192 origin : z . string ( ) ,
195193 ancestorLevel : z . number ( ) ,
@@ -232,7 +230,7 @@ export const ZodProjectServe = z.object({
232230 args : z . string ( ) ,
233231 env : z . object ( { } ) . passthrough ( ) . partial ( ) ,
234232 ready : z . string ( ) ,
235- } ) . strict ( ) . required ( { cmd : true , ready : true } ) ;
233+ } ) . strict ( ) . partial ( ) . required ( { cmd : true , ready : true } ) ;
236234
237235export const ZodPublish = z . object ( {
238236 netlify : z . array ( z . lazy ( ( ) => ZodPublishRecord ) ) ,
@@ -650,7 +648,7 @@ export const ZodChapterItem = z.union([
650648 z . object ( {
651649 part : z . string ( ) ,
652650 chapters : z . array ( z . lazy ( ( ) => ZodNavigationItem ) ) ,
653- } ) . passthrough ( ) . required ( { part : true } ) ,
651+ } ) . passthrough ( ) . partial ( ) . required ( { part : true } ) ,
654652] ) ;
655653
656654export const ZodChapterList = z . array ( z . lazy ( ( ) => ZodChapterItem ) ) ;
@@ -662,7 +660,7 @@ export const ZodOtherLinks = z.array(
662660 icon : z . string ( ) ,
663661 rel : z . string ( ) ,
664662 target : z . string ( ) ,
665- } ) . passthrough ( ) . required ( { text : true , href : true } ) ,
663+ } ) . passthrough ( ) . partial ( ) . required ( { text : true , href : true } ) ,
666664) ;
667665
668666export const ZodCrossrefLabelsSchema = z . string ( ) ;
@@ -756,7 +754,7 @@ export const ZodWebsiteAbout = z.object({
756754 "image-width" : z . string ( ) ,
757755 "image-shape" : z . enum ( [ "rectangle" , "round" , "rounded" ] as const ) ,
758756 links : z . array ( z . lazy ( ( ) => ZodNavigationItem ) ) ,
759- } ) . strict ( ) . required ( { template : true } ) ;
757+ } ) . strict ( ) . partial ( ) . required ( { template : true } ) ;
760758
761759export const ZodWebsiteListing = z . object ( {
762760 id : z . string ( ) ,
@@ -1224,9 +1222,8 @@ export const ZodSemver = z.string().regex(
12241222
12251223export const ZodQuartoDate = z . union ( [
12261224 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 } ) ,
12301227] ) ;
12311228
12321229export const ZodProjectProfile = z . object ( {
@@ -1248,7 +1245,7 @@ export const ZodNotebookViewSchema = z.object({
12481245 title : z . union ( [ z . string ( ) , z . boolean ( ) ] ) ,
12491246 url : z . string ( ) ,
12501247 "download-url" : z . string ( ) ,
1251- } ) . passthrough ( ) . required ( { notebook : true } ) ;
1248+ } ) . passthrough ( ) . partial ( ) . required ( { notebook : true } ) ;
12521249
12531250export const ZodCodeLinksSchema = z . union ( [
12541251 z . boolean ( ) ,
@@ -1317,7 +1314,7 @@ export const ZodBrandStringLightDark = z.union([
13171314export const ZodBrandLogoExplicitResource = z . object ( {
13181315 path : z . string ( ) ,
13191316 alt : z . string ( ) ,
1320- } ) . strict ( ) . required ( { path : true } ) ;
1317+ } ) . strict ( ) . partial ( ) . required ( { path : true } ) ;
13211318
13221319export const ZodBrandLogoResource = z . union ( [
13231320 z . string ( ) ,
@@ -1564,10 +1561,10 @@ export const ZodBrandFontFile = z.object({
15641561 path : z . string ( ) ,
15651562 weight : z . lazy ( ( ) => ZodBrandFontWeight ) ,
15661563 style : z . lazy ( ( ) => ZodBrandFontStyle ) ,
1567- } ) . passthrough ( ) . required ( { path : true } ) ,
1564+ } ) . passthrough ( ) . partial ( ) . required ( { path : true } ) ,
15681565 ] ) ,
15691566 ) ,
1570- } ) . strict ( ) . required ( { files : true , family : true , source : true } ) ;
1567+ } ) . strict ( ) . partial ( ) . required ( { files : true , family : true , source : true } ) ;
15711568
15721569export const ZodBrandFontFamily = z . string ( ) ;
15731570
0 commit comments