-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Typedef not recognized as int in path parameters #2053
Comments
Anmonpi
changed the title
Typedef not recognized as int
Typedef not recognized as int on path parameters
Sep 6, 2024
Anmonpi
changed the title
Typedef not recognized as int on path parameters
Typedef not recognized as int in path parameters
Sep 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using auto_route_generator 9.0.0, typedefs on parameters are not recognized as the type they have assigned, and the code generator throws the error:
Parameter [typedefParameter] must be of a type that can be parsed from a [String] because it will also obtain it's value from a path
valid types: [String, int, double, num, bool, dynamic]
Example:
Using the typedef:
In the page:
The text was updated successfully, but these errors were encountered: