Skip to content

Commit

Permalink
Re-added method for binary compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kloch committed May 14, 2024
1 parent 0c2be51 commit 5306003
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions core/src/main/scala/sttp/tapir/Schema.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ case class Schema[T](
) extends SchemaMacros[T] {

// required for binary compatibility
// def this(
// schemaType: SchemaType[T],
// name: Option[SName],
// isOptional: Boolean,
// description: Option[String],
// default: Option[(T, Option[Any])],
// format: Option[String],
// encodedExample: Option[Any],
// deprecated: Boolean,
// hidden: Boolean,
// validator: Validator[T],
// attributes: AttributeMap
// ) =
// this(schemaType, name, isOptional, description, default, format, encodedExample, deprecated, hidden, validator, attributes, None)
def this(
schemaType: SchemaType[T],
name: Option[SName],
isOptional: Boolean,
description: Option[String],
default: Option[(T, Option[Any])],
format: Option[String],
encodedExample: Option[Any],
deprecated: Boolean,
hidden: Boolean,
validator: Validator[T],
attributes: AttributeMap
) =
this(schemaType, name, isOptional, description, default, format, encodedExample, deprecated, hidden, validator, attributes, None)

// def copy(
// schemaType: SchemaType[T] = this.schemaType,
Expand Down

0 comments on commit 5306003

Please sign in to comment.