avancement planning
This commit is contained in:
+5
-3
@@ -7,8 +7,10 @@ interface JSONSchemaGeneratorParams {
|
||||
metadata?: $ZodRegistry<Record<string, any>>;
|
||||
/** The JSON Schema version to target.
|
||||
* - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
|
||||
* - `"draft-7"` — JSON Schema Draft 7 */
|
||||
target?: "draft-7" | "draft-2020-12";
|
||||
* - `"draft-7"` — JSON Schema Draft 7
|
||||
* - `"draft-4"` — JSON Schema Draft 4
|
||||
* - `"openapi-3.0"` — OpenAPI 3.0 Schema Object */
|
||||
target?: "draft-4" | "draft-7" | "draft-2020-12" | "openapi-3.0";
|
||||
/** How to handle unrepresentable types.
|
||||
* - `"throw"` — Default. Unrepresentable types throw an error
|
||||
* - `"any"` — Unrepresentable types become `{}` */
|
||||
@@ -60,7 +62,7 @@ interface Seen {
|
||||
}
|
||||
export declare class JSONSchemaGenerator {
|
||||
metadataRegistry: $ZodRegistry<Record<string, any>>;
|
||||
target: "draft-7" | "draft-2020-12";
|
||||
target: "draft-4" | "draft-7" | "draft-2020-12" | "openapi-3.0";
|
||||
unrepresentable: "throw" | "any";
|
||||
override: (ctx: {
|
||||
zodSchema: schemas.$ZodTypes;
|
||||
|
||||
Reference in New Issue
Block a user