We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68934ac commit 1b4ad83Copy full SHA for 1b4ad83
1 file changed
packages/fedify/src/codegen/type.ts
@@ -309,10 +309,10 @@ const scalarTypes: Record<string, ScalarType> = {
309
dataCheck(v) {
310
return `typeof ${v} === "object" && "@value" in ${v}
311
&& typeof ${v}["@value"] === "string"
312
- && ${v}["@value"] !== ""`;
+ && ${v}["@value"] !== "" && ${v}["@value"] !== "/"`;
313
},
314
decoder(v) {
315
- return `${v}["@value"].startsWith("/") && options.baseUrl ? new URL(options.baseUrl + ${v}["@value"]) : new URL(${v}["@value"])`;
+ return `new URL(${v}["@value"])`;
316
317
318
"fedify:publicKey": {
0 commit comments