Skip to content

Support both JSON schema validator target names - #541

Open
wolfv wants to merge 1 commit into
open-rmf:mainfrom
wolfv:fix/schema-validator-target
Open

Support both JSON schema validator target names#541
wolfv wants to merge 1 commit into
open-rmf:mainfrom
wolfv:fix/schema-validator-target

Conversation

@wolfv

@wolfv wolfv commented Aug 8, 2026

Copy link
Copy Markdown

Different releases of nlohmann_json_schema_validator export different CMake target names. The version pinned by nlohmann_json_schema_validator_vendor exports the unnamespaced nlohmann_json_schema_validator target, while newer releases provide nlohmann_json_schema_validator::validator.

Select the target that is actually available in both rmf_websocket and rmf_task_ros2. This fixes clean builds against the currently vendored validator without dropping compatibility with newer validator packages.

The unnamespaced target is checked first because rmf_task_ros2 may see an unresolved namespaced target reference transitively from rmf_websocket.

Signed-off-by: Wolf Vollprecht w.vollprecht@gmail.com

Signed-off-by: Wolf Vollprecht <w.vollprecht@gmail.com>
@mxgrey mxgrey added this to PMC Board Aug 8, 2026
@github-project-automation github-project-automation Bot moved this to Inbox in PMC Board Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

2 participants