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

model tag "alt" don't work #954

Closed
emileFRT opened this issue Feb 5, 2024 · 1 comment · Fixed by #956
Closed

model tag "alt" don't work #954

emileFRT opened this issue Feb 5, 2024 · 1 comment · Fixed by #956

Comments

@emileFRT
Copy link
Contributor

emileFRT commented Feb 5, 2024

The documentation states that bun:"alt:alt_name" is a valid struct tag, but i get WARN: bun: [.. ]has unknown tag option: "alt" when trying to use it.
I don't see it listed as a field option in the function isKnownFieldOption where there is an "alias" option that i do not understand for fields.
I'm willing to try to fix it if it's indeed a bug

@vallahaye
Copy link

Hello everyone,

I'm facing the same problem. I had planned to use "alt" annotations to implement generic repositories but unfortunately this has to be put aside until this problem is solved.
I've had a look at the linked PR and the fix seems very straightforward. Do you have any idea when it might be merged?

Thanks in advance, Bun is an excellent software!

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 a pull request may close this issue.

2 participants