Skip to content

Commit bc1cd77

Browse files
Kamil Klochkamilkloch
Kamil Kloch
authored andcommitted
Re-added method for binary compatibility.
1 parent 84e42a0 commit bc1cd77

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

core/src/main/scala/sttp/tapir/Schema.scala

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ case class Schema[T](
4646
) extends SchemaMacros[T] {
4747

4848
// required for binary compatibility
49-
// def this(
50-
// schemaType: SchemaType[T],
51-
// name: Option[SName],
52-
// isOptional: Boolean,
53-
// description: Option[String],
54-
// default: Option[(T, Option[Any])],
55-
// format: Option[String],
56-
// encodedExample: Option[Any],
57-
// deprecated: Boolean,
58-
// hidden: Boolean,
59-
// validator: Validator[T],
60-
// attributes: AttributeMap
61-
// ) =
62-
// this(schemaType, name, isOptional, description, default, format, encodedExample, deprecated, hidden, validator, attributes, None)
49+
def this(
50+
schemaType: SchemaType[T],
51+
name: Option[SName],
52+
isOptional: Boolean,
53+
description: Option[String],
54+
default: Option[(T, Option[Any])],
55+
format: Option[String],
56+
encodedExample: Option[Any],
57+
deprecated: Boolean,
58+
hidden: Boolean,
59+
validator: Validator[T],
60+
attributes: AttributeMap
61+
) =
62+
this(schemaType, name, isOptional, description, default, format, encodedExample, deprecated, hidden, validator, attributes, None)
6363

6464
// def copy(
6565
// schemaType: SchemaType[T] = this.schemaType,

0 commit comments

Comments
 (0)