JsonSchemaRoot

zio.http.endpoint.openapi.JsonSchema.JsonSchemaRoot
See theJsonSchemaRoot companion object
case class JsonSchemaRoot(root: JsonSchema, children: Map[String, JsonSchema])

Represents a complete JSON Schema document, consisting of:

Value parameters

children

A map of definition names to their corresponding JsonSchema instances.

root

The top-level JsonSchema for the document.

Attributes

Companion
object
Source
JsonSchema.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def encodeJson(indent: Option[Int] = ...): CharSequence

Attributes

Source
JsonSchema.scala
def toJson: String

Serializes the schema into compact JSON (no pretty-printing).

Serializes the schema into compact JSON (no pretty-printing).

Attributes

Returns

A JSON string containing the serialized schema.

Source
JsonSchema.scala
def toJsonPretty: String

Serializes the schema into human-readable, pretty-printed JSON.

Serializes the schema into human-readable, pretty-printed JSON.

Attributes

Returns

A formatted JSON string representing the schema.

Source
JsonSchema.scala
def toSerializableSchema: SerializableJsonSchema

Attributes

Source
JsonSchema.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product