Skip to content

fix: allow route name without leading slash #5363

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

Merged
merged 2 commits into from
May 17, 2025

Conversation

jianshen92
Copy link
Contributor

What does this PR address?

Fixes #(issue)

Before submitting:

@jianshen92 jianshen92 requested a review from a team as a code owner May 15, 2025 15:49
@jianshen92 jianshen92 requested review from aarnphm and removed request for a team May 15, 2025 15:49
@frostming
Copy link
Collaborator

Do you think it's better if user specifies name=$name, also sets route to /$name automatically?

An other concern is, which one is better between auto fixing and erroring out?

@aarnphm
Copy link
Contributor

aarnphm commented May 16, 2025

Do you think it's better if user specifies name=$name, also sets route to /$name automatically?

An other concern is, which one is better between auto fixing and erroring out?

+1 for error out instead of auto behaviour

@frostming
Copy link
Collaborator

+1 for error out instead of auto behaviour

me too. Then a validator= in attr.field() would make more sense

@jianshen92
Copy link
Contributor Author

+1 for error out instead of auto behaviour

me too. Then a validator= in attr.field() would make more sense

+1 for erroring out.

@jianshen92 jianshen92 merged commit dd9bc1e into bentoml:main May 17, 2025
50 of 51 checks passed
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

Successfully merging this pull request may close these issues.

3 participants