diff --git a/src/Illuminate/Contracts/JsonSchema/JsonSchema.php b/src/Illuminate/Contracts/JsonSchema/JsonSchema.php new file mode 100644 index 000000000000..60e7d20f05c3 --- /dev/null +++ b/src/Illuminate/Contracts/JsonSchema/JsonSchema.php @@ -0,0 +1,51 @@ +)|array $properties + * @return \Illuminate\JsonSchema\Types\ObjectType + */ + public function object(Closure|array $properties = []); + + /** + * Create a new array property instance. + * + * @return \Illuminate\JsonSchema\Types\ArrayType + */ + public function array(); + + /** + * Create a new string property instance. + * + * @return \Illuminate\JsonSchema\Types\StringType + */ + public function string(); + + /** + * Create a new integer property instance. + * + * @return \Illuminate\JsonSchema\Types\IntegerType + */ + public function integer(); + + /** + * Create a new number property instance. + * + * @return \Illuminate\JsonSchema\Types\NumberType + */ + public function number(); + + /** + * Create a new boolean property instance. + * + * @return \Illuminate\JsonSchema\Types\BooleanType + */ + public function boolean(); +}