|
993 | 993 | * } |
994 | 994 | * @psalm-type MercureConfig = array{ |
995 | 995 | * hubs?: array<string, array{ // Default: [] |
996 | | - * url?: scalar|Param|null, // URL of the hub's publish endpoint |
997 | | - * public_url?: scalar|Param|null, // URL of the hub's public endpoint // Default: null |
| 996 | + * url?: scalar|Param|null, // URL of the hub's publish endpoint // Default: null |
| 997 | + * public_url?: scalar|Param|null, // URL of the hub's public endpoint |
998 | 998 | * jwt?: string|array{ // JSON Web Token configuration. |
999 | 999 | * value?: scalar|Param|null, // JSON Web Token to use to publish to this hub. |
1000 | 1000 | * provider?: scalar|Param|null, // The ID of a service to call to provide the JSON Web Token. |
|
1242 | 1242 | * serialize_payload_fields?: mixed, // Set to null to serialize all payload fields when a validation error is thrown, or set the fields you want to include explicitly. // Default: [] |
1243 | 1243 | * query_parameter_validation?: bool|Param, // Deprecated: Will be removed in API Platform 5.0. // Default: true |
1244 | 1244 | * }, |
| 1245 | + * jsonapi?: array{ |
| 1246 | + * use_iri_as_id?: bool|Param, // Set to false to use entity identifiers instead of IRIs as the "id" field in JSON:API responses. // Default: true |
| 1247 | + * }, |
1245 | 1248 | * eager_loading?: bool|array{ |
1246 | 1249 | * enabled?: bool|Param, // Default: true |
1247 | 1250 | * fetch_partial?: bool|Param, // Fetch only partial data according to serialization groups. If enabled, Doctrine ORM entities will not work as expected if any of the other fields are used. // Default: false |
|
1253 | 1256 | * enable_json_streamer?: bool|Param, // Enable json streamer. // Default: true |
1254 | 1257 | * enable_swagger_ui?: bool|Param, // Enable Swagger UI // Default: true |
1255 | 1258 | * enable_re_doc?: bool|Param, // Enable ReDoc // Default: true |
| 1259 | + * enable_scalar?: bool|Param, // Enable Scalar API Reference // Default: true |
1256 | 1260 | * enable_entrypoint?: bool|Param, // Enable the entrypoint // Default: true |
1257 | 1261 | * enable_docs?: bool|Param, // Enable the docs // Default: true |
1258 | 1262 | * enable_profiler?: bool|Param, // Enable the data collector and the WebProfilerBundle integration. // Default: true |
1259 | 1263 | * enable_phpdoc_parser?: bool|Param, // Enable resource metadata collector using PHPStan PhpDocParser. // Default: true |
1260 | | - * enable_link_security?: bool|Param, // Enable security for Links (sub resources) // Default: false |
| 1264 | + * enable_link_security?: bool|Param, // Deprecated: This option is always enabled and will be removed in API Platform 5.0. // Enable security for Links (sub resources). // Default: true |
1261 | 1265 | * collection?: array{ |
1262 | 1266 | * exists_parameter_name?: scalar|Param|null, // The name of the query parameter to filter on nullable field values. // Default: "exists" |
1263 | 1267 | * order?: scalar|Param|null, // The default order of results. // Default: "ASC" |
|
1357 | 1361 | * elasticsearch?: bool|array{ |
1358 | 1362 | * enabled?: bool|Param, // Default: false |
1359 | 1363 | * hosts?: list<scalar|Param|null>, |
| 1364 | + * ssl_ca_bundle?: scalar|Param|null, // Path to the SSL CA bundle file for Elasticsearch SSL verification. // Default: null |
| 1365 | + * ssl_verification?: bool|Param, // Enable or disable SSL verification for Elasticsearch connections. // Default: true |
| 1366 | + * client?: "elasticsearch"|"opensearch"|Param, // The search engine client to use: "elasticsearch" or "opensearch". // Default: "elasticsearch" |
1360 | 1367 | * }, |
1361 | 1368 | * openapi?: array{ |
1362 | 1369 | * contact?: array{ |
|
1375 | 1382 | * identifier?: scalar|Param|null, // An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. // Default: null |
1376 | 1383 | * }, |
1377 | 1384 | * swagger_ui_extra_configuration?: mixed, // To pass extra configuration to Swagger UI, like docExpansion or filter. // Default: [] |
| 1385 | + * scalar_extra_configuration?: mixed, // To pass extra configuration to Scalar API Reference, like theme or darkMode. // Default: [] |
1378 | 1386 | * overrideResponses?: bool|Param, // Whether API Platform adds automatic responses to the OpenAPI documentation. // Default: true |
1379 | 1387 | * error_resource_class?: scalar|Param|null, // The class used to represent errors in the OpenAPI documentation. // Default: null |
1380 | 1388 | * validation_error_resource_class?: scalar|Param|null, // The class used to represent validation errors in the OpenAPI documentation. // Default: null |
1381 | 1389 | * }, |
1382 | 1390 | * maker?: bool|array{ |
1383 | 1391 | * enabled?: bool|Param, // Default: true |
| 1392 | + * namespace_prefix?: scalar|Param|null, // Add a prefix to all maker generated classes. e.g set it to "Api" to set the maker namespace to "App\Api\" (if the maker.root_namespace config is App). e.g. App\Api\State\MyStateProcessor // Default: "" |
| 1393 | + * }, |
| 1394 | + * mcp?: bool|array{ |
| 1395 | + * enabled?: bool|Param, // Default: true |
| 1396 | + * format?: scalar|Param|null, // The serialization format used for MCP tool input/output. Must be a format registered in api_platform.formats (e.g. "jsonld", "json", "jsonapi"). // Default: "jsonld" |
1384 | 1397 | * }, |
1385 | 1398 | * exception_to_status?: array<string, int|Param>, |
1386 | 1399 | * formats?: array<string, array{ // Default: {"jsonld":{"mime_types":["application/ld+json"]}} |
|
1465 | 1478 | * rules?: mixed, |
1466 | 1479 | * policy?: mixed, |
1467 | 1480 | * middleware?: mixed, |
1468 | | - * parameters?: mixed, |
| 1481 | + * parameters?: array<string, array{ // Default: [] |
| 1482 | + * key?: mixed, |
| 1483 | + * schema?: mixed, |
| 1484 | + * open_api?: mixed, |
| 1485 | + * provider?: mixed, |
| 1486 | + * filter?: mixed, |
| 1487 | + * property?: mixed, |
| 1488 | + * description?: mixed, |
| 1489 | + * properties?: mixed, |
| 1490 | + * required?: mixed, |
| 1491 | + * priority?: mixed, |
| 1492 | + * hydra?: mixed, |
| 1493 | + * constraints?: mixed, |
| 1494 | + * security?: mixed, |
| 1495 | + * security_message?: mixed, |
| 1496 | + * extra_properties?: mixed, |
| 1497 | + * filter_context?: mixed, |
| 1498 | + * native_type?: mixed, |
| 1499 | + * cast_to_array?: mixed, |
| 1500 | + * cast_to_native_type?: mixed, |
| 1501 | + * cast_fn?: mixed, |
| 1502 | + * default?: mixed, |
| 1503 | + * filter_class?: mixed, |
| 1504 | + * ...<mixed> |
| 1505 | + * }>, |
1469 | 1506 | * strict_query_parameter_validation?: mixed, |
1470 | 1507 | * hide_hydra_operation?: mixed, |
1471 | 1508 | * json_stream?: mixed, |
1472 | 1509 | * extra_properties?: mixed, |
1473 | 1510 | * map?: mixed, |
| 1511 | + * mcp?: mixed, |
1474 | 1512 | * route_name?: mixed, |
1475 | 1513 | * errors?: mixed, |
1476 | 1514 | * read?: mixed, |
1477 | 1515 | * deserialize?: mixed, |
1478 | 1516 | * validate?: mixed, |
1479 | 1517 | * write?: mixed, |
1480 | 1518 | * serialize?: mixed, |
| 1519 | + * content_negotiation?: mixed, |
1481 | 1520 | * priority?: mixed, |
1482 | 1521 | * name?: mixed, |
1483 | 1522 | * allow_create?: mixed, |
|
0 commit comments