From 1d9fb42ef94280c9c9cfdbe961c7317a40173b50 Mon Sep 17 00:00:00 2001 From: adamw Date: Tue, 11 Oct 2022 11:25:25 +0200 Subject: [PATCH] Docs --- apispec-model/src/main/scala/sttp/apispec/Schema.scala | 9 +++------ apispec-model/src/main/scala/sttp/apispec/model.scala | 5 +---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/apispec-model/src/main/scala/sttp/apispec/Schema.scala b/apispec-model/src/main/scala/sttp/apispec/Schema.scala index 74cf709..b892f99 100644 --- a/apispec-model/src/main/scala/sttp/apispec/Schema.scala +++ b/apispec-model/src/main/scala/sttp/apispec/Schema.scala @@ -15,12 +15,11 @@ object AnySchema { case object Boolean extends Encoding } - /** Json schema can be represented by the values `true` or `{}` ( empty object). This represents any json value. - */ + /** Json schema can be represented by the values `true` or `{}` (empty object). This represents any json value. */ case object Anything extends AnySchema /** Json schema can be represented by the values `false` or `{"not": {}}` (object with a single property "not" which - * has a single value with must be the empty object" This represents no json value. + * has a single value with must be the empty object". This represents no json value. */ case object Nothing extends AnySchema } @@ -76,9 +75,7 @@ object Schema { } sealed trait SchemaType - -final case class ArraySchemaType(value: List[BasicSchemaType]) extends SchemaType - +case class ArraySchemaType(value: List[BasicSchemaType]) extends SchemaType sealed abstract class BasicSchemaType(val value: String) extends SchemaType object SchemaType { diff --git a/apispec-model/src/main/scala/sttp/apispec/model.scala b/apispec-model/src/main/scala/sttp/apispec/model.scala index f3e718f..ddd7b24 100644 --- a/apispec-model/src/main/scala/sttp/apispec/model.scala +++ b/apispec-model/src/main/scala/sttp/apispec/model.scala @@ -27,8 +27,5 @@ case class ExternalDocumentation( case class ExtensionValue(value: String) -/** https://json-schema.org/understanding-json-schema/reference/regular_expressions.html - * - * @param value - */ +/** @see https://json-schema.org/understanding-json-schema/reference/regular_expressions.html */ final case class Pattern(value: String)