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

Unable to construct gen #8

Open
infosec-studio opened this issue Sep 14, 2019 · 0 comments
Open

Unable to construct gen #8

infosec-studio opened this issue Sep 14, 2019 · 0 comments

Comments

@infosec-studio
Copy link

Given the following enum defined in Hodur:

^{:enum true}
                 RiskProbability [remote, unlikely, possible, probable, highly-probable]

after calling defspecs the following code throws an error:

(gen/sample (s/gen :infosec-studio.entities/risk-probability))

Error printing return value (ExceptionInfo) at clojure.spec.alpha/gensub (alpha.clj:282).
Unable to construct gen at: [:probable] for: :infosec-studio.entities.risk-probability/probable

I would expect a valid value to be generated (e.g. "probable").

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

1 participant