Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #14 from scala-steward/update/scalafmt-core-2.7.5
Browse files Browse the repository at this point in the history
Update scalafmt-core to 2.7.5
  • Loading branch information
mergify[bot] committed Apr 16, 2021
2 parents 9866fff + 36605bb commit 19411fa
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "2.7.4"
version = "2.7.5"

rewrite {
rules = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package io.github.ghostbuster91.sttp.client3

class SbtLogAdapter(logger: sbt.Logger) extends LogAdapter {

}
class SbtLogAdapter(logger: sbt.Logger) extends LogAdapter {}
2 changes: 1 addition & 1 deletion codegen-sbt-plugin/src/sbt-test/codegen/simple/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ lazy val root = (project in file("."))
"com.softwaremill.sttp.client3" %% "circe" % "3.1.9",
"io.circe" %% "circe-core" % "0.13.0",
"io.circe" %% "circe-generic" % "0.13.0",
"io.circe" %% "circe-parser" % "0.13.0",
"io.circe" %% "circe-parser" % "0.13.0"
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ lazy val root = (project in file("."))
"com.softwaremill.sttp.client3" %% "circe" % "3.1.9",
"io.circe" %% "circe-core" % "0.13.0",
"io.circe" %% "circe-generic" % "0.13.0",
"io.circe" %% "circe-parser" % "0.13.0",
"io.circe" %% "circe-parser" % "0.13.0"
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ lazy val root = (project in file("."))
"com.softwaremill.sttp.client3" %% "circe" % "3.1.9",
"io.circe" %% "circe-core" % "0.13.0",
"io.circe" %% "circe-generic" % "0.13.0",
"io.circe" %% "circe-parser" % "0.13.0",
"io.circe" %% "circe-parser" % "0.13.0"
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ trait CirceCodecs extends AutoDerivation with SttpCirceApi

case class Category(
id: Int,
name: String,
name: String
)

case class Pet(
id: Int,
name: String,
categories: List[Category],
status: String,
status: String
)

class DefaultApi(baseUrl: String) extends CirceCodecs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ case class Person(name: String, age: Int)
class DefaultApi(baseUrl: String) extends CirceCodecs {
def getPersonByIdAndName(
personId: Int,
personName: Option[String],
personName: Option[String]
): Request[Person, Any] = basicRequest
.get(uri"$baseUrl/person/$personId/$personName")
.response(asJson[Person].getRight)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ case class Person(name: String, age: Int)
class DefaultApi(baseUrl: String) extends CirceCodecs {
def getPersonByIdAndName(
personId: Int,
personName: Option[String],
personName: Option[String]
): Request[Person, Any] = basicRequest
.get(uri"$baseUrl/person/asd/$personId/$personName")
.response(asJson[Person].getRight)
Expand Down
4 changes: 2 additions & 2 deletions core/src/test/resources/api/uri/mixed_path_and_query.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ trait CirceCodecs extends AutoDerivation with SttpCirceApi
class DefaultApi(baseUrl: String) extends CirceCodecs {
def getSomething(
petId: Int,
additionalMetadata: Option[String],
additionalMetadata: Option[String]
): Request[Unit, Any] = basicRequest
.get(
uri"$baseUrl/pet/$petId/uploadImage?additionalMetadata=$additionalMetadata",
uri"$baseUrl/pet/$petId/uploadImage?additionalMetadata=$additionalMetadata"
)
.response(asJson[Unit].getRight)
}

0 comments on commit 19411fa

Please sign in to comment.