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

value enums are currently blocked from being part of a type enum #1499

Closed
matt2e opened this issue May 16, 2024 · 1 comment
Closed

value enums are currently blocked from being part of a type enum #1499

matt2e opened this issue May 16, 2024 · 1 comment
Assignees
Labels
duplicate This issue or pull request already exists

Comments

@matt2e
Copy link
Collaborator

matt2e commented May 16, 2024

Example module code

//ftl:enum
type TypeEnum interface {
  typeEnum()
}

type ValueEnumType ValueEnum
func (ValueEnumType) typeEnum() {}


//ftl:enum
type ValueEnum string

const (
  A ValueEnum = "a"
)

Schema result

enum ValueEnum: String {
   A = "a"
} 

enum TypeEnum {
   ValueEnumType foo.ValueEnum
}

Currently we do not allow this when extracting the schema

@github-actions github-actions bot added the triage Issue needs triaging label May 16, 2024
@wesbillman wesbillman removed the triage Issue needs triaging label May 16, 2024
@worstell worstell added the duplicate This issue or pull request already exists label May 17, 2024
@worstell
Copy link
Contributor

captured in #1496

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants