@@ -23,7 +23,7 @@ import {
2323 TagObject ,
2424} from "openapi3-ts/oas31" ;
2525import * as R from "ramda" ;
26- import { globalRegistry , z } from "zod/v4" ;
26+ import { z } from "zod/v4" ;
2727import { ResponseVariant } from "./api-response" ;
2828import {
2929 FlatObject ,
@@ -47,7 +47,7 @@ import { ezFileBrand } from "./file-schema";
4747import { IOSchema } from "./io-schema" ;
4848import { flattenIO } from "./json-schema-helpers" ;
4949import { Alternatives } from "./logical-container" ;
50- import { getBrand , metaSymbol } from "./metadata" ;
50+ import { getBrand } from "./metadata" ;
5151import { Method } from "./method" ;
5252import { ProprietaryBrand } from "./proprietary-schemas" ;
5353import { ezRawBrand } from "./raw-schema" ;
@@ -101,16 +101,6 @@ const samples = {
101101export const reformatParamsInPath = ( path : string ) =>
102102 path . replace ( routePathParamsRegex , ( param ) => `{${ param . slice ( 1 ) } }` ) ;
103103
104- export const depictDefault : Depicter = ( { zodSchema, jsonSchema } ) => {
105- const value =
106- globalRegistry . get ( zodSchema ) ?. [ metaSymbol ] ?. defaultLabel ??
107- jsonSchema . default ;
108- return {
109- ...jsonSchema ,
110- default : typeof value === "bigint" ? String ( value ) : value ,
111- } ;
112- } ;
113-
114104export const depictUpload : Depicter = ( { } , ctx ) => {
115105 if ( ctx . isResponse )
116106 throw new DocumentationError ( "Please use ez.upload() only for input." , ctx ) ;
@@ -398,7 +388,6 @@ export const depictRequestParams = ({
398388const depicters : Partial < Record < FirstPartyKind | ProprietaryBrand , Depicter > > =
399389 {
400390 nullable : depictNullable ,
401- default : depictDefault ,
402391 union : depictUnion ,
403392 bigint : depictBigInt ,
404393 intersection : depictIntersection ,
0 commit comments