svelte-reflector 1.3.8 → 1.3.10

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.
@@ -93,7 +93,9 @@ export class PrimitiveProp {
93
93
  }
94
94
  return "";
95
95
  };
96
- const buildedExample = `params?.empty || isEmpty ? ${this.fallbackExample} : ${this.example}`;
96
+ const buildedExample = this.customType
97
+ ? `${this.example}`
98
+ : `params?.empty || isEmpty ? ${this.fallbackExample} : ${this.example}`;
97
99
  const effectivelyNullable = this.isEffectivelyNullable;
98
100
  const keyExpr = effectivelyNullable ? `params?.data?.${name} ?? null` : `params?.data?.${name}`;
99
101
  let typeParam = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-reflector",
3
- "version": "1.3.8",
3
+ "version": "1.3.10",
4
4
  "description": "Reflects zod types from openAPI schemas",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",