Skip to content

Commit

Permalink
simplify def
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisjkl committed Oct 19, 2023
1 parent 0ffa8ac commit 7fb56c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/json-schema/src/internals/JsonSchemaToIModel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7fb56c1

Please sign in to comment.