From 7fb56c1a20b7b6866395c49a799574bc263b07ed Mon Sep 17 00:00:00 2001 From: Jeff Lewis Date: Thu, 19 Oct 2023 09:05:57 -0600 Subject: [PATCH] simplify def --- modules/json-schema/src/internals/JsonSchemaToIModel.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/json-schema/src/internals/JsonSchemaToIModel.scala b/modules/json-schema/src/internals/JsonSchemaToIModel.scala index b371f27..0bc3cf3 100644 --- a/modules/json-schema/src/internals/JsonSchemaToIModel.scala +++ b/modules/json-schema/src/internals/JsonSchemaToIModel.scala @@ -80,7 +80,7 @@ private class JsonSchemaToIModel[F[_]: Parallel: TellShape: TellError]( val schemaName = Name(schemaNameSegment) // Computing schemas under the $defs field, if it exists. - def $defSchemas: String => Vector[Local] = { name => + def $defSchemas(name: String): Vector[Local] = { val defsObject = rawJson.asObject .flatMap(_.apply(name)) .flatMap(_.asObject)