Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
transform
when mapping Map values
This fixes the following warning generated when tapir is being used with Scala 2.13: ``` method mapValues in trait MapOps is deprecated (since 2.13.0): Use .view.mapValues(f). A future version will include a strict version of this method (for now, .view.mapValues(f).toMap) ``` I am using tapir in my project with warnings-as-errors enabled. This warning prevents me from using `.in(formBody[...])` with case classes. The idea to switch to `transform` which is compatible with Scala 2.11, 2.12 and 2.13 was originally found here: scala/scala-collection-compat#216 (comment)
- Loading branch information