Skip to content

fix: register the HAL beans when HateoasProperties is absent - #3343

Merged
bnasslahsen merged 1 commit into
mainfrom
fix/3328-hateoas-properties-absent
Sep 6, 2026
Merged

fix: register the HAL beans when HateoasProperties is absent#3343
bnasslahsen merged 1 commit into
mainfrom
fix/3328-hateoas-properties-absent

Conversation

@bnasslahsen

Copy link
Copy Markdown
Collaborator

Requiring HateoasProperties on the classpath disabled the whole hateoas configuration for applications that only depend on spring-boot-starter-data-rest, since HateoasProperties lives in the separate spring-boot-hateoas auto-configuration module. Without CollectionModelContentConverter the _embedded schema was left without properties and /v3/api-docs failed with a NullPointerException.

Restore the LinkRelationProvider-only class condition and pick the HateoasHalProvider bean definition through nested configurations, and guard the data-rest schema post-processing against empty properties.

Fixes #3328
Fixes #3337

Requiring HateoasProperties on the classpath disabled the whole hateoas
configuration for applications that only depend on
spring-boot-starter-data-rest, since HateoasProperties lives in the
separate spring-boot-hateoas auto-configuration module. Without
CollectionModelContentConverter the _embedded schema was left without
properties and /v3/api-docs failed with a NullPointerException.

Restore the LinkRelationProvider-only class condition and pick the
HateoasHalProvider bean definition through nested configurations, and
guard the data-rest schema post-processing against empty properties.

Fixes #3328
Fixes #3337

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@bnasslahsen
bnasslahsen merged commit ce6da88 into main Sep 6, 2026
1 check passed
@bnasslahsen
bnasslahsen deleted the fix/3328-hateoas-properties-absent branch September 6, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant