Refinements using arguments #551
wvandermerwe
started this conversation in
General
Replies: 2 comments
-
@scala-impala Have you tried:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
It is possible to access the value of the trait when constructing refinements, as such :
It is not possible (and will likely never be possible) to lift the values contained by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I have been experimenting with smithy refinements over the weekend, and was trying to get something like this to work:
Which could be applied like this:
The refinement type in my code would then take 2 type parameters to represent the bounds in this case. I couldn't get it to work on my side, as the type parameters were an issue when applying the refinement trait:
I then tried to access the fields through the Shapetag in the refinement provider implicit instance, but didn't succeed with that either. I'm not sure if this is even possible at all or whether I just don't know enough about smithy(4s) to get this to work, so any help would be appreciated :)
Beta Was this translation helpful? Give feedback.
All reactions