Skip to content

fix: make package and description optional on GetAdaptersElement#338

Merged
privateip merged 1 commit intoitential:develfrom
fordjes:fix/issue-330-get-adapters-null-package-description
Mar 18, 2026
Merged

fix: make package and description optional on GetAdaptersElement#338
privateip merged 1 commit intoitential:develfrom
fordjes:fix/issue-330-get-adapters-null-package-description

Conversation

@fordjes
Copy link
Contributor

@fordjes fordjes commented Mar 10, 2026

Summary

  • IAP returns null for package and description on adapter objects that are not fully registered
  • The previous required str fields caused a Pydantic ValidationError on any get_adapters() call when such adapters exist in the platform response
  • Changed both fields to str | None = None and added 4 regression tests

Test plan

  • make ci passes on the branch
  • New tests in tests/test_models_adapters.py cover null-field scenarios
  • get_adapters tool returns successfully when unregistered adapters are present

Fixes #330

🤖 Generated with Claude Code

…ntial#330)

IAP returns null for package and description fields on adapters that
are not fully registered. The previous required str fields caused a
Pydantic ValidationError on any get_adapters() call when such adapters
exist in the platform response.

Closes itential#330

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fordjes fordjes requested a review from a team as a code owner March 10, 2026 21:03
@privateip privateip merged commit 694373b into itential:devel Mar 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: get_adapters fails with ValidationError when adapter package or description is null

2 participants