JsonSchemaTypeFactory
class JsonSchemaTypeFactory extends JsonSchema implements JsonSchema (View source)
Methods
Build a type from a raw array of the Laravel-supported JSON Schema subset.
Dynamically pass static methods to the schema instance.
Create a new object schema instance.
Create a new integer property instance.
Create a new number property instance.
Create a new string property instance.
Create a new boolean property instance.
Details
static Type
fromArray(array $schema)
Build a type from a raw array of the Laravel-supported JSON Schema subset.
static Type
__callStatic(string $name, mixed $arguments)
Dynamically pass static methods to the schema instance.
ObjectType
object(Type> $properties = [])
Create a new object schema instance.
AnyOfType
anyOf(Type> $schemas)
Create a new anyOf schema instance.
IntegerType
integer()
Create a new integer property instance.
NumberType
number()
Create a new number property instance.
StringType
string()
Create a new string property instance.
BooleanType
boolean()
Create a new boolean property instance.
ArrayType
array()
Create a new array property instance.
UnionType
union(string> $types)
Create a new multi-type union instance.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.