You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set smithy4sAllowedNamespaces so that the generated code also includes aws.cloudformation and smithy.rules (which would normally be excluded)
Try to compile
Result:
[error] main/smithy4s/com/amazonaws/location/BatchGetDevicePositionRequest.scala:32:34: could not find implicit value for parameter constraint: smithy4s.RefinementProvider.Simple[smithy.api.Length,com.amazonaws.location.ResourceName]
[error] ResourceName.schema.validated(smithy.api.Length(min =Some(1L), max =None)).required[BatchGetDevicePositionRequest]("TrackerName", _.trackerName).addHints(smithy.api.Documentation("<p>The tracker resource retrieving the device position.</p>"), smithy.api.HttpLabel()),
[error] ^
[error] main/smithy4s/com/amazonaws/location/BatchGetDevicePositionRequest.scala:34:5: missing argument list for method make in objectBatchGetDevicePositionRequest
[error] Unapplied methods are only converted to functions when a function typeis expected.
[error] You can make this conversion explicit by writing `make _` or `make(_,_)` instead of `make`.
[error] )(make).withId(id).addHints(hints)
[error] ^
[error] main/smithy4s/com/amazonaws/location/SearchPlaceIndexForSuggestionsRequest.scala:95:37: could not find implicit value for parameter constraint: smithy4s.RefinementProvider.Simple[smithy.api.Length,com.amazonaws.location.SensitiveString]
[error] SensitiveString.schema.validated(smithy.api.Length(min =Some(1L), max =Some(200L))).required[SearchPlaceIndexForSuggestionsRequest]("Text", _.text).addHints(smithy.api.Documentation("<p>The free-form partial text to use to generate place suggestions. For example,\n <code>eiffel tow</code>.</p>")),
[error] ^
[error] main/smithy4s/com/amazonaws/location/SearchPlaceIndexForSuggestionsRequest.scala:103:5: missing argument list for method make in objectSearchPlaceIndexForSuggestionsRequest
[error] Unapplied methods are only converted to functions when a function typeis expected.
[error] You can make this conversion explicit by writing `make _` or `make(_,_,_,_,_,_,_,_,_)` instead of `make`.
[error] )(make).withId(id).addHints(hints)
[error] ^
[error] main/smithy4s/com/amazonaws/location/SearchPlaceIndexForTextRequest.scala:94:37: could not find implicit value for parameter constraint: smithy4s.RefinementProvider.Simple[smithy.api.Length,com.amazonaws.location.SensitiveString]
[error] SensitiveString.schema.validated(smithy.api.Length(min =Some(1L), max =Some(200L))).required[SearchPlaceIndexForTextRequest]("Text", _.text).addHints(smithy.api.Documentation("<p>The address, name, city, or region to be used in the search in free-form text format.\n For example, <code>123 Any Street</code>.</p>")),
[error] ^
[error] main/smithy4s/com/amazonaws/location/SearchPlaceIndexForTextRequest.scala:102:5: missing argument list for method make in objectSearchPlaceIndexForTextRequest
[error] Unapplied methods are only converted to functions when a function typeis expected.
[error] You can make this conversion explicit by writing `make _` or `make(_,_,_,_,_,_,_,_,_)` instead of `make`.
[error] )(make).withId(id).addHints(hints)
[error] ^
[error] 6 errors found
[error] (Compile/ compileIncremental) Compilation failed
[error] Totaltime: 1 s, completed Sep27, 2024, 1:24:14AM
Looking for a smaller reproduction, but I think we're dealing with a problem that affects member refinements applied to newtypes (specifically @length).
The text was updated successfully, but these errors were encountered:
To reproduce:
smithy4sAllowedNamespaces
so that the generated code also includesaws.cloudformation
andsmithy.rules
(which would normally be excluded)Result:
Looking for a smaller reproduction, but I think we're dealing with a problem that affects member refinements applied to newtypes (specifically
@length
).The text was updated successfully, but these errors were encountered: