diff --git a/buildSetup.sc b/buildSetup.sc index 4e8bae8..7d5785c 100644 --- a/buildSetup.sc +++ b/buildSetup.sc @@ -109,11 +109,11 @@ trait BasePublishModule extends BaseModule with CiReleaseModule { } } -trait BaseScala213Module extends BaseScalaModule with ScalafmtModule { +trait BaseScala213Module extends BaseScalaModule { override def scalaVersion = T.input(ScalaVersions.scala213) } -trait BaseScalaModule extends ScalaModule with BaseModule { +trait BaseScalaModule extends ScalaModule with BaseModule with ScalafmtModule { override def scalacPluginIvyDeps = T { val sv = scalaVersion() diff --git a/modules/compiler-core/src/AbstractToSmithyCompiler.scala b/modules/compiler-core/src/AbstractToSmithyCompiler.scala index e6c4ef3..7403b88 100644 --- a/modules/compiler-core/src/AbstractToSmithyCompiler.scala +++ b/modules/compiler-core/src/AbstractToSmithyCompiler.scala @@ -28,7 +28,8 @@ import software.amazon.smithy.model.validation.Severity import software.amazon.smithy.model.validation.ValidatedResult import software.amazon.smithy.build.TransformContext -/** Holds common logic that serves for the conversion of openapi/json-schema to smithy +/** Holds common logic that serves for the conversion of openapi/json-schema to + * smithy */ abstract class AbstractToSmithyCompiler[Input] protected[compiler] () { @@ -97,7 +98,9 @@ abstract class AbstractToSmithyCompiler[Input] protected[compiler] () { private def validate(model: SmithyModel): ValidatedResult[SmithyModel] = SmithyModel.assembler().discoverModels().addModel(model).assemble() - private def transform(opts: ToSmithyCompilerOptions)(model: SmithyModel): SmithyModel = + private def transform( + opts: ToSmithyCompilerOptions + )(model: SmithyModel): SmithyModel = opts.transformers.foldLeft(model)((m, t) => t.transform(TransformContext.builder().model(m).build()) )