SchemaOps

zio.blocks.openapi.`package`.SchemaOps
final implicit class SchemaOps[A](self: Schema[A]) extends AnyVal

Enriches Schema[A] with OpenAPI-specific operations.

Attributes

Source
package.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def schemaName: String

Attributes

Source
package.scala

Converts this Schema to an OpenAPI SchemaObject.

Converts this Schema to an OpenAPI SchemaObject.

This method first converts the Schema to a JsonSchema using the existing toJsonSchema method, then wraps it in a SchemaObject using SchemaObject.fromJsonSchema.

Attributes

Returns

A SchemaObject representing this Schema's structure and constraints.

Source
package.scala

Attributes

Source
package.scala
def toRefSchema(name: String): (ReferenceOr[SchemaObject], (String, SchemaObject))

Attributes

Source
package.scala