zod 3.25.22 → 3.25.23

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.
@@ -614,10 +614,10 @@ class JSONSchemaGenerator {
614
614
  }
615
615
  }
616
616
  if (this.target === "draft-2020-12") {
617
- result.$schema = "https://json-schema.org/draft-2020-12/schema";
617
+ result.$schema = "https://json-schema.org/draft/2020-12/schema";
618
618
  }
619
619
  else if (this.target === "draft-7") {
620
- result.$schema = "https://json-schema.org/draft-07/schema";
620
+ result.$schema = "http://json-schema.org/draft-07/schema#";
621
621
  }
622
622
  else {
623
623
  console.warn(`Invalid target: ${this.target}`);
@@ -610,10 +610,10 @@ export class JSONSchemaGenerator {
610
610
  }
611
611
  }
612
612
  if (this.target === "draft-2020-12") {
613
- result.$schema = "https://json-schema.org/draft-2020-12/schema";
613
+ result.$schema = "https://json-schema.org/draft/2020-12/schema";
614
614
  }
615
615
  else if (this.target === "draft-7") {
616
- result.$schema = "https://json-schema.org/draft-07/schema";
616
+ result.$schema = "http://json-schema.org/draft-07/schema#";
617
617
  }
618
618
  else {
619
619
  console.warn(`Invalid target: ${this.target}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod",
3
- "version": "3.25.22",
3
+ "version": "3.25.23",
4
4
  "type": "module",
5
5
  "author": "Colin McDonnell <zod@colinhacks.com>",
6
6
  "description": "TypeScript-first schema declaration and validation library with static type inference",