Skip to content

Conversation

@notrab
Copy link
Member

@notrab notrab commented Jan 7, 2026

The optional path parameter pattern (/:parentNode?) generated an invalid spec because hono-openapi couldn't express an optional path parameter in a compliant way for OpenApi.

Choose a PR template

Use the appropriate template for this PR:

  • Light PR
    For small, low-risk changes (mechanical refactors, formatting, dependency bumps).

  • Substantial PR
    For behavior changes, consumer impact, new concepts, or high-risk work.

If you're unsure, that suggests this PR is a Substantial PR.

@vercel
Copy link

vercel bot commented Jan 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
admin.ensnode.io Ready Ready Preview, Comment Jan 7, 2026 6:34pm
ensnode.io Ready Ready Preview, Comment Jan 7, 2026 6:34pm
ensrainbow.io Ready Ready Preview, Comment Jan 7, 2026 6:34pm

@changeset-bot
Copy link

changeset-bot bot commented Jan 7, 2026

⚠️ No Changeset found

Latest commit: 7ae44cd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Member

@lightwalker-eth lightwalker-eth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@notrab Hey thanks looks good. Looks like there's 2 follow-up issues that could be good to create. Details in comments. Please take the lead to merge when ready 👍

description: "Indexer is within acceptable distance",
},
503: {
description: "Indexer is not within acceptable distance or indexing status unavailable",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indexing status unavailable: this edge case seems better to represent as a HTTP 500 error. Shall we make a separate follow-up issue for this?

*/
app.get(
"/:parentNode?",
"/:parentNode",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. It seems we should make a follow-up issue to make parentNode just another optional query param to the registrar actions API and not part of the path.

wdyt?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lightwalker-eth I agree, and it would actually mean most of this PR could be disregarded, and simpler without the duplicates.

Co-authored-by: lightwalker.eth <126201998+lightwalker-eth@users.noreply.github.com>
@notrab notrab marked this pull request as ready for review January 7, 2026 18:33
@notrab notrab requested a review from a team as a code owner January 7, 2026 18:33
@notrab notrab merged commit 59f690f into fix-openapi-validation-errors Jan 7, 2026
11 checks passed
@notrab notrab deleted the separate-parent-node branch January 7, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants