WooCommerce Code Reference

Builder
in package

Builder for creating schema objects.

See: https://developer.wordpress.org/rest-api/extending-the-rest-api/schema/

Table of Contents

any_of()  : Any_Of_Schema
Creates a schema that allows a value to match any of the given schemas.
array()  : Array_Schema
Creates a schema for an array.
boolean()  : Boolean_Schema
Creates a schema for a boolean.
integer()  : Integer_Schema
Creates a schema for an integer.
null()  : Null_Schema
Creates a schema for null.
number()  : Number_Schema
Creates a schema for a number.
object()  : Object_Schema
Creates a schema for an object.
one_of()  : One_Of_Schema
Creates a schema that allows a value to match one of the given schemas.
string()  : String_Schema
Creates a schema for a string.

Methods