Releases: spryker/api-platform
Releases · spryker/api-platform
1.20.1
Included commits: 1.20.0...1.20.1
Fixes
- Fixed
GlueApiExceptionSubscriberto omit thecodefield from error responses when the error code is empty, preventing invalid responses for exceptions without a code. - Fixed
IdNormalizerto restore thetypeattribute renamed byReservedAttributeNameConverterfrom_typeback totype, ensuring backward compatibility with the legacy Glue REST API.
1.20.0
Included commits: 1.19.0...1.20.0
Fixes
- Removed
EntityTagSubscriberfrom the default service configuration to migrate ETag/If-Match handling to theEntityTagsRestApimodule.
Deprecations
- Deprecated
EntityTagSubscriberin favor of\Spryker\Glue\EntityTagsRestApi\Api\Storefront\Listener\EntityTagStorefrontListener.
1.19.0
Included commits: 1.18.0...1.19.0
Improvements
- Refactored
JsonApiResolvedRelationshipSubscriberto replace the hardcoded list of resource types with a configurableincludedSortPrioritymechanism, allowing each resource to declare its sort position in the JSON:APIincludedarray via#[ApiResource(extraProperties: ['includedSortPriority' => N])]. - Added
includedSortPriorityproperty to the API resource schema (api-resource-schema-v1.json) and updatedResourceAttributeGeneratorto propagate the value from resource YAML definitions into the generated#[ApiResource]attributes.
1.18.0
Included commits: 1.17.0...1.18.0
Improvements
- Fixed
GlueApiExceptionSubscriber::createInternalServerErrorResponse()to restore backward-compatibletext/htmlresponse format for unhandled exceptions, ensuring consumers that detect 500 errors by failed JSON parsing continue to work correctly.
1.17.0
Included commits: 1.16.1...1.17.0
Improvements
- Extended
SchemaParserandResourceAttributeGeneratorto support theresourceAttributesClassNameresource property, enabling API Platform resources to declare a legacy transfer class for backward-compatible request validation plugin support.
1.16.1
Included commits: 1.16.0...1.16.1
Fixes
- Adjusted
sortIncludedResources()to includeconfigurable-bundle-template-image-setsin the list of direct item types, ensuring correct ordering of included resources when configurable bundle template image sets are resolved.
1.16.0
Included commits: 1.15.0...1.16.0
Adjustments
- Updated
api-platform/*package constraints from^4.2.0to^4.3.0to restore acceptance compatibility.
1.15.0
Included commits: 1.14.0...1.15.0
Fixes
- Fixed a BC break where API Platform endpoints rejected requests missing an
Acceptheader by introducingAcceptHeaderFallbackSubscriberto restore the legacy Glue behavior of defaulting toapplication/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
Included commits: 1.13.0...1.14.0
Improvements
- Adjusted validation error handling in
GlueApiExceptionSubscriberto 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
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.