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
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
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.

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.

def toSerializableSchema: SerializableJsonSchema

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product