Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add an API to return a specific schema inheritance chain #398

Open
SparkYuan opened this issue Jul 24, 2024 · 1 comment
Open

Feat: add an API to return a specific schema inheritance chain #398

SparkYuan opened this issue Jul 24, 2024 · 1 comment

Comments

@SparkYuan
Copy link

Feature Request

Is your feature request related to a problem? Please describe:

No
Describe the feature you'd like:

Add an API to return a specific schema inheritance chain, such as func inheritanceChain(t string) []string

Schema A inherited schema B and B inherited C. The return of inheritanceChain(A) should be [C,B,A]

@Peefy
Copy link
Contributor

Peefy commented Jul 24, 2024

Hello @SparkYuan

You can use the API

func (pkg *KclPackage) GetSchemaTypeMappingNamed(schemaName string) (map[string]map[string]*KclType, error) {
with the KclPackage at the stack.

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

No branches or pull requests

2 participants