Skip to content

Commit 5306003

Browse files
author
Kamil Kloch
committed
Re-added method for binary compatibility.
1 parent 0c2be51 commit 5306003

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

+14-14
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)