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

Out-of-the-box support for URL/URI fields in clients #1165

Open
jmartisk opened this issue Nov 18, 2021 · 2 comments
Open

Out-of-the-box support for URL/URI fields in clients #1165

jmartisk opened this issue Nov 18, 2021 · 2 comments
Assignees

Comments

@jmartisk
Copy link
Member

with automatic translation between URL/URI and String

@jmartisk jmartisk self-assigned this Nov 18, 2021
@t1
Copy link
Collaborator

t1 commented Nov 19, 2021

See #1164

@t1
Copy link
Collaborator

t1 commented Nov 20, 2021

I think a specific solution would not be sufficient; we should have a more generic approach.

There used to be some code that also would consider java.net.URL and java.net.URI to be valid scalar wrappers, given that they have a String-only constructor. But we then removed it due to #270. We could re-add it with the additional requirement that the class be either on a list of allowed wrapper classes (a built-in list containing, e.g., these two, plus a custom config option) or annotated accordingly (maybe reusing the server-side @AdaptToScalar).

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

2 participants