Skip to content

Comments

feat: Add support for generating interfaces for model classes#39

Merged
swedishkid merged 1 commit intomainfrom
claude/generate-model-interfaces-qDg2U
Jan 13, 2026
Merged

feat: Add support for generating interfaces for model classes#39
swedishkid merged 1 commit intomainfrom
claude/generate-model-interfaces-qDg2U

Conversation

@swedishkid
Copy link
Contributor

Add a new --generate-model-interfaces (-m) CLI option that generates interfaces for all model classes in the OpenAPI specification. When enabled:

  • Generates an interface (IPet, ICategory, etc.) for each model class
  • Model classes implement their corresponding interfaces
  • Interface properties are read-only (get-only)
  • Useful for dependency injection, mocking, and creating abstraction layers

Also updated README documentation to include both --generate-interface and --generate-model-interfaces options with usage examples.

Add a new --generate-model-interfaces (-m) CLI option that generates interfaces for all model classes in the OpenAPI specification. When enabled:

- Generates an interface (IPet, ICategory, etc.) for each model class
- Model classes implement their corresponding interfaces
- Interface properties are read-only (get-only)
- Useful for dependency injection, mocking, and creating abstraction layers

Also updated README documentation to include both --generate-interface and --generate-model-interfaces options with usage examples.
@swedishkid swedishkid enabled auto-merge January 13, 2026 07:52
@swedishkid swedishkid merged commit e8f9e99 into main Jan 13, 2026
3 checks passed
@swedishkid swedishkid deleted the claude/generate-model-interfaces-qDg2U branch January 13, 2026 07:53
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