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

Add enum namespace override to metamodel #45

Open
benkamphaus opened this issue Aug 27, 2024 · 0 comments
Open

Add enum namespace override to metamodel #45

benkamphaus opened this issue Aug 27, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@benkamphaus
Copy link
Contributor

Users should be able to specify a namespace for enum idents that are valid for particular enum attributes. This is necessary to ensure that enums with an identical meaning that appear in different contexts are not duplicated unnecessarily, and that they can still be used to enable joins or graph traversal between these contexts when appropriate.

Currently, the CANDEL schema has several non-conforming enum types (pfs/os etc. reasons, variant feature types) and these require special case handling in the schema browser. Ideally, the schema browser could use inference on a :unify.enum/namespace attribute (or similar) in the metamodel to resolve this instead.

This requires:

  • the addition of the flat/compiled unify metamodel attribute
  • a way to specify this in the Unify schema definition edn file
  • use of the compiled attribute in the schema dashboard (other repo)
  • use of the compiled attribute in the infer-schema task.
@benkamphaus benkamphaus added the enhancement New feature or request label Aug 27, 2024
@benkamphaus benkamphaus self-assigned this Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant