Factory for creating the JSON Schema document corresponding to a PHP class.
interface ApiPlatform\JsonSchema\SchemaFactoryInterface
{
public buildSchema(string $className, string $format, string $type, null|$operation, null|`<a href="/docs/main/references/JsonSchema/Schema">ApiPlatform\JsonSchema\Schema</a>` $schema, null|array $serializerContext, bool $forceCollection): `<a href="/docs/main/references/JsonSchema/Schema">ApiPlatform\JsonSchema\Schema
}
Builds the JSON Schema document corresponding to the given PHP class.
public buildSchema(string $className, string $format, string $type, null|$operation, null|`<a href="/docs/main/references/JsonSchema/Schema">ApiPlatform\JsonSchema\Schema</a>` $schema, null|array $serializerContext, bool $forceCollection): `<a href="/docs/main/references/JsonSchema/Schema">ApiPlatform\JsonSchema\Schema
className | string | |
format | string | |
type | string | |
operation | `ApiPlatform\Metadata\Operation` | |
schema | `ApiPlatform\JsonSchema\Schema` | |
serializerContext | array | |
forceCollection | bool |
<a href="/docs/main/references/JsonSchema/Schema">ApiPlatform\JsonSchema\Schema</a>
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more