From 530600341250036fd08c5b98c80302964e1d1fd3 Mon Sep 17 00:00:00 2001 From: Kamil Kloch Date: Tue, 14 May 2024 10:13:01 +0200 Subject: [PATCH] Re-added method for binary compatibility. --- core/src/main/scala/sttp/tapir/Schema.scala | 28 ++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/core/src/main/scala/sttp/tapir/Schema.scala b/core/src/main/scala/sttp/tapir/Schema.scala index d5659958e2..8ec95540f4 100644 --- a/core/src/main/scala/sttp/tapir/Schema.scala +++ b/core/src/main/scala/sttp/tapir/Schema.scala @@ -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,