Skip to content

Fix 'initalized' typo: rename to 'initialized' with deprecated alias - #961

Merged
anttiviljami merged 1 commit into
mainfrom
claude/fix-public-initalized-typo-svh22h
Aug 23, 2026
Merged

Fix 'initalized' typo: rename to 'initialized' with deprecated alias#961
anttiviljami merged 1 commit into
mainfrom
claude/fix-public-initalized-typo-svh22h

Conversation

@anttiviljami

Copy link
Copy Markdown
Member

Summary

Fixes the long-standing misspelling of the public initalized property on OpenAPIBackend.

  • Renames the public property initalizedinitialized, updating all internal reads/writes (init(), handleRequest(), registerHandler(), registerSecurityHandler())
  • Keeps a backwards-compatible initalized getter that returns this.initialized, marked @deprecated so existing consumers reading the old name keep working (and get an editor deprecation hint)
  • Fixes the same misspelling in nearby comments and JSDoc ("Initalizes", "initalize router/validator/context", etc.)

Backwards compatibility

Reads of api.initalized are fully backwards compatible via the deprecated alias getter. Note that external code assigning to api.initalized would break, since the alias is a getter with no setter — internal code never did this outside of init().

Testing

  • Existing assertions updated to use initialized
  • New test verifying the deprecated initalized alias reports false before init() and true after
  • tsc --noEmit, eslint, and the full backend test suite (51 tests) pass

Generated by Claude Code

Rename the public 'initalized' property on OpenAPIBackend to 'initialized'
and fix related comment/doc typos. A deprecated 'initalized' getter is kept
so existing code reading the misspelled property keeps working.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ljd151MbkKqfwUGnFReNy5
@anttiviljami
anttiviljami merged commit fc794b1 into main Aug 23, 2026
15 checks passed
@anttiviljami
anttiviljami deleted the claude/fix-public-initalized-typo-svh22h branch August 23, 2026 13:10
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.

2 participants