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

Support for identifying a concept using a string scalar #559

Closed
dselman opened this issue Dec 5, 2022 · 1 comment · Fixed by #562
Closed

Support for identifying a concept using a string scalar #559

dselman opened this issue Dec 5, 2022 · 1 comment · Fixed by #562
Assignees

Comments

@dselman
Copy link
Sponsor Contributor

dselman commented Dec 5, 2022

Bug Report 🐛 or Feature?

It would be useful to be able to identify concepts using a scalar.

Expected Behavior

Be able to reference a scalar and use it as an identifying field.

Current Behavior

namespace test

enum Color {
  o RED
  o GREEN
  o BLUE
}

scalar Email extends String

@resource
concept Person identified by email {
  o Email email
  o Color color
}
IllegalModelException: Class "Person" is identified by field "email", but the type of the field is not "String". Line 12 column 1, to line 16 column 2. 

Possible Solution

Steps to Reproduce

Context (Environment)

Desktop

  • OS: [e.g. macOS]
  • Browser: [e.g. Chrome, Safari]
  • Version: [e.g. 0.22.15]

Detailed Description

Possible Implementation

@mttrbrts
Copy link
Sponsor Member

mttrbrts commented Dec 5, 2022

Example updated.

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 a pull request may close this issue.

2 participants