Skip to content

Commit

Permalink
- get apply method back. deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
aonyshchuk committed Nov 27, 2020
1 parent e94bbe9 commit 721eb97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/scala/json/Schema.scala
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ sealed trait Schema[+T] {
def withDescription(x: String): Self = duplicate(description = Some(x))
def withTitle(x: String): Self = duplicate(title = Some(x))
def toDefinition[TT >: T](sig: String): Schema.`def`[TT] = Schema.`def`(sig, this)
@deprecated(since = "0.6.1", message = "will be removed in 1.0.0") def apply(refName: String): Schema[T] = toDefinition(refName)
}

object Schema {
Expand Down

0 comments on commit 721eb97

Please sign in to comment.