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

Parse enum abstract from path #74

Open
kevinresol opened this issue Jan 2, 2019 · 1 comment
Open

Parse enum abstract from path #74

kevinresol opened this issue Jan 2, 2019 · 1 comment

Comments

@kevinresol
Copy link
Member

kevinresol commented Jan 2, 2019

@:get('/$type')
function get(type:TheType):Noise;

where TheType is enum abstract

@kevinresol
Copy link
Member Author

kevinresol commented Jan 7, 2019

Now I have implemented the server-side part. For the proxy part, apparently the data structure doesn't carry the type of a param but only its name. Not sure how to force-cast it into the underlying primitive type so that Stringly can do its conversion job.

Current workaround is to add an explicit @:to Stringly cast to the type.

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