Skip to content

Provide an optional enum path converter. #22

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
bckohan opened this issue Feb 10, 2023 · 2 comments
Closed

Provide an optional enum path converter. #22

bckohan opened this issue Feb 10, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@bckohan
Copy link
Member

bckohan commented Feb 10, 2023

https://docs.djangoproject.com/en/stable/topics/http/urls/#path-converters

@bckohan bckohan self-assigned this Feb 10, 2023
@bckohan bckohan added the enhancement New feature or request label Feb 10, 2023
@bckohan bckohan changed the title Add an optional enum path converter. Provide an optional enum path converter. Feb 25, 2023
@bckohan
Copy link
Member Author

bckohan commented Apr 10, 2023

Because path converters are regex based, supporting an enum path converter for arbitrary enums is difficult, especially if symmetricity is to be honored. Closing this as wont fix for now... may revisit in the future.

@bckohan bckohan closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2023
@bckohan
Copy link
Member Author

bckohan commented Apr 16, 2023

Reviving this - should be able to dynamically build the regex from list of strings and offer a type factory for enum converters.

@bckohan bckohan reopened this Apr 16, 2023
@bckohan bckohan added this to the Version 2.0 milestone May 1, 2023
bckohan added a commit that referenced this issue May 15, 2023
bckohan added a commit that referenced this issue May 15, 2023
@bckohan bckohan closed this as completed Sep 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant