Skip to content

Consider throwing an error if setVersionRequired and setDefaultVersion are called on ApiVersionConfigurer #35387

@philwebb

Description

@philwebb

Currently the ApiVersionConfigurer.setVersionRequired(...) states:

When a defaultVersion is also set, this is automatically set to false.

With Spring Boot property support it's pretty easy set version-required and default-version. I think it might be better to consider this a configuration error and fail startup early.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions