Skip to content

Commit

Permalink
Rename to apply
Browse files Browse the repository at this point in the history
  • Loading branch information
seveneves committed Aug 7, 2024
1 parent b50e1f4 commit 86fa82a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ object SchemaResolver {
}.headOption
}

def components(schemas: Map[String, Schema]): SchemaResolver = new SchemaResolver(schemas)
def apply(schemas: Map[String, Schema]): SchemaResolver = new SchemaResolver(schemas)

def defs(schema: Schema): SchemaResolver = new SchemaResolver(
def apply(schema: Schema): SchemaResolver = new SchemaResolver(
schema.$defs.getOrElse(Map.empty).collect { case (name, s: Schema) => name -> s }
)
}

0 comments on commit 86fa82a

Please sign in to comment.