Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Oct 11, 2022
1 parent c623062 commit 1d9fb42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
9 changes: 3 additions & 6 deletions apispec-model/src/main/scala/sttp/apispec/Schema.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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 {
Expand Down
5 changes: 1 addition & 4 deletions apispec-model/src/main/scala/sttp/apispec/model.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 1d9fb42

Please sign in to comment.