Skip to content

feat(core): add class-hierarchy assignability helpers (#1281) - #1283

Open
ujjwalv01 wants to merge 1 commit into
accordproject:mainfrom
ujjwalv01:feat-assignability-helpers
Open

feat(core): add class-hierarchy assignability helpers (#1281)#1283
ujjwalv01 wants to merge 1 commit into
accordproject:mainfrom
ujjwalv01:feat-assignability-helpers

Conversation

@ujjwalv01

Copy link
Copy Markdown

feat(core): add class-hierarchy assignability helpers

Closes #1281

This PR adds two new pure helper methods to the BaseModelManager API to simplify checking class-hierarchy assignability for downstream projects.

Changes

  • Added getAssignableConcreteTypes(baseFqn) to BaseModelManager to fetch all concrete class declarations assignable to a given base type.
  • Added isAssignableTo(fqn, baseFqn) to BaseModelManager to check if a candidate type is assignable to a base type.
  • Added comprehensive unit tests for both helpers covering edge cases.

Flags

  • None

Screenshots or Video

N/A

Related Issues

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from fork:branchname

…1281)

- Added getAssignableConcreteTypes to BaseModelManager
- Added isAssignableTo to BaseModelManager
- Added comprehensive unit tests for both helpers

Signed-off-by: Ujjwal Verma <ujjwalverma010305@gmail.com>
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open with no activity. Remove the stale label or comment to keep it active. Only items with maintainer engagement are auto-closed.

@github-actions github-actions Bot added the Stale label Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add class-hierarchy assignability helpers to the model API (isAssignableTo / getAssignableConcreteTypes)

1 participant