Skip to content

fix: accept bare hosts and update code generator#130

Merged
tim-thacker-nullify merged 1 commit intomainfrom
fix/bare-host-support
Mar 1, 2026
Merged

fix: accept bare hosts and update code generator#130
tim-thacker-nullify merged 1 commit intomainfrom
fix/bare-host-support

Conversation

@tim-thacker-nullify
Copy link
Copy Markdown
Member

Summary

  • SanitizeNullifyHost now accepts bare hosts (e.g. acme.nullify.ai) by only validating the .nullify.ai suffix, instead of requiring the api. prefix
  • Updated the code generator template in scripts/generate/main.go to include apiHost prefix logic, so regenerating client.go preserves the bare-host support
  • Updated all user-facing messages/prompts from api.<your-instance>.nullify.ai to <your-instance>.nullify.ai
  • Added test cases for bare host inputs

Test plan

  • go build ./... compiles cleanly
  • go test ./... all tests pass
  • Verify SanitizeNullifyHost("acme.nullify.ai") returns "acme.nullify.ai", nil
  • Verify SanitizeNullifyHost("api.acme.nullify.ai") still returns "api.acme.nullify.ai", nil
  • Verify re-running the generator produces a client.go with the apiHost logic

🤖 Generated with Claude Code

SanitizeNullifyHost now accepts bare hosts (e.g. acme.nullify.ai)
in addition to api-prefixed hosts. The code generator template is
updated to include the apiHost prefix logic so regeneration preserves
the behavior. User-facing messages updated accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tim-thacker-nullify tim-thacker-nullify added the patch Patch version updates (fixes) label Mar 1, 2026
@tim-thacker-nullify tim-thacker-nullify added this pull request to the merge queue Mar 1, 2026
Merged via the queue into main with commit 16b3df0 Mar 1, 2026
2 of 3 checks passed
@tim-thacker-nullify tim-thacker-nullify deleted the fix/bare-host-support branch March 1, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Patch version updates (fixes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants