-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Good evening!
I'm currently working on adding JSON-LD support to my Next.js app and this project has been an amazing find!
I was hoping to use a custom input property for my SearchAction but the following code seems to break the TypeScript implementation:
{
"@context": "https://schema.org",
"@type": "WebSite",
name: publicConfig.appName,
url: publicConfig.baseUrl,
potentialAction: {
"@type": "SearchAction",
target: getAbsoluteUrl("/search?search={search}&kind={kind}"),
"search-input": {
"@type": "PropertyValueSpecification",
valueName: "search",
valueRequired: true,
},
"kind-input": {
"@type": "PropertyValueSpecification",
valueName: "kind",
valuePattern: "^{beer|brewery|user}$",
defaultValue: "beer",
},
},
} satisfies WithContext<WebSiteJsonLd>I can see that this feature has been requested here and that this pull request was merged nearly a year ago (May 20, 2025) to solve this issue.
However, the package had no new release since then.
Would it be possible to make a new release to fix this issue (and to release the 6 other commits that have been pushed to main since then).
Thanks in advance 🙏
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels