Skip to content

Enable Dynamic Model Schema Overrides on New Model Registration #86

@Tyagi-Sunny

Description

@Tyagi-Sunny

Implement a custom Booter to support dynamic model schema overrides at runtime when new models are added to the application.

🎯 Objective:
Ensure that any newly introduced model in the application can have its schema automatically overridden or extended without requiring manual wiring.

🧩 Key Features:
Use metadata key sourceloop:override-model-schema to register override schemas.

Dynamically require and register controller modules.

Support multiple export patterns (default and named exports).

Ensure compatibility with existing @loopback/boot and controller conventions."

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions