Skip to content

Releases: spryker/api-platform

1.20.1

05 Jun 13:04

Choose a tag to compare

Included commits: 1.20.0...1.20.1

Fixes

  • Fixed GlueApiExceptionSubscriber to omit the code field from error responses when the error code is empty, preventing invalid responses for exceptions without a code.
  • Fixed IdNormalizer to restore the type attribute renamed by ReservedAttributeNameConverter from _type back to type, ensuring backward compatibility with the legacy Glue REST API.

1.20.0

03 Jun 14:30

Choose a tag to compare

Included commits: 1.19.0...1.20.0

Fixes

  • Removed EntityTagSubscriber from the default service configuration to migrate ETag/If-Match handling to the EntityTagsRestApi module.

Deprecations

  • Deprecated EntityTagSubscriber in favor of \Spryker\Glue\EntityTagsRestApi\Api\Storefront\Listener\EntityTagStorefrontListener.

1.19.0

03 Jun 12:51

Choose a tag to compare

Included commits: 1.18.0...1.19.0

Improvements

  • Refactored JsonApiResolvedRelationshipSubscriber to replace the hardcoded list of resource types with a configurable includedSortPriority mechanism, allowing each resource to declare its sort position in the JSON:API included array via #[ApiResource(extraProperties: ['includedSortPriority' => N])].
  • Added includedSortPriority property to the API resource schema (api-resource-schema-v1.json) and updated ResourceAttributeGenerator to propagate the value from resource YAML definitions into the generated #[ApiResource] attributes.

1.18.0

02 Jun 14:13

Choose a tag to compare

Included commits: 1.17.0...1.18.0

Improvements

  • Fixed GlueApiExceptionSubscriber::createInternalServerErrorResponse() to restore backward-compatible text/html response format for unhandled exceptions, ensuring consumers that detect 500 errors by failed JSON parsing continue to work correctly.

1.17.0

01 Jun 17:26

Choose a tag to compare

Included commits: 1.16.1...1.17.0

Improvements

  • Extended SchemaParser and ResourceAttributeGenerator to support the resourceAttributesClassName resource property, enabling API Platform resources to declare a legacy transfer class for backward-compatible request validation plugin support.

1.16.1

01 Jun 14:01

Choose a tag to compare

Included commits: 1.16.0...1.16.1

Fixes

  • Adjusted sortIncludedResources() to include configurable-bundle-template-image-sets in the list of direct item types, ensuring correct ordering of included resources when configurable bundle template image sets are resolved.

1.16.0

01 Jun 12:12

Choose a tag to compare

Included commits: 1.15.0...1.16.0

Adjustments

  • Updated api-platform/* package constraints from ^4.2.0 to ^4.3.0 to restore acceptance compatibility.

1.15.0

28 May 09:52

Choose a tag to compare

Included commits: 1.14.0...1.15.0

Fixes

  • Fixed a BC break where API Platform endpoints rejected requests missing an Accept header by introducing AcceptHeaderFallbackSubscriber to restore the legacy Glue behavior of defaulting to application/vnd.api+json.
  • Fixed a production issue where unhandled non-HTTP exceptions on API Platform endpoints could leak internal error details to clients by introducing GlueApiExceptionSubscriber::onKernelExceptionLastResort() to return a generic 500 response regardless of the debug flag.

1.14.0

27 May 17:26

Choose a tag to compare

Included commits: 1.13.0...1.14.0

Improvements

  • Adjusted validation error handling in GlueApiExceptionSubscriber to correctly restore legacy REST API error messages when string or integer-overflow values are submitted to typed integer fields, ensuring consistent error behavior during the Shopping Lists REST API migration.

1.13.0

22 May 15:42

Choose a tag to compare

Included commits: 1.12.0...1.13.0

Improvements

  • Improved synthetic validation error messages for empty string values submitted for numeric-typed API properties to reflect actual property constraints instead of generic fallback messages.