Skip to content

IHS-217: Fix object profile file validation for mandatory field#980

Merged
solababs merged 1 commit intostablefrom
sb-28042026-fix-object-profile-file-validation-ihs-217
Apr 29, 2026
Merged

IHS-217: Fix object profile file validation for mandatory field#980
solababs merged 1 commit intostablefrom
sb-28042026-fix-object-profile-file-validation-ihs-217

Conversation

@solababs
Copy link
Copy Markdown
Contributor

@solababs solababs commented Apr 28, 2026

Skip mandatory field validation during object loading when object_profile is specified.

Closes #908

@solababs solababs requested a review from a team as a code owner April 28, 2026 10:22
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying infrahub-sdk-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: f7eae30
Status: ✅  Deploy successful!
Preview URL: https://1116b08c.infrahub-sdk-python.pages.dev
Branch Preview URL: https://sb-28042026-fix-object-profi.infrahub-sdk-python.pages.dev

View logs

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@           Coverage Diff           @@
##           stable     #980   +/-   ##
=======================================
  Coverage   81.41%   81.41%           
=======================================
  Files         134      134           
  Lines       11347    11347           
  Branches     1703     1703           
=======================================
  Hits         9238     9238           
  Misses       1566     1566           
  Partials      543      543           
Flag Coverage Δ
integration-tests 41.85% <100.00%> (+<0.01%) ⬆️
python-3.10 54.34% <100.00%> (-0.02%) ⬇️
python-3.11 54.36% <100.00%> (+0.01%) ⬆️
python-3.12 54.36% <100.00%> (ø)
python-3.13 54.34% <100.00%> (-0.02%) ⬇️
python-3.14 54.34% <100.00%> (ø)
python-filler-3.12 22.74% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
infrahub_sdk/spec/object.py 85.24% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@solababs solababs merged commit 0509b20 into stable Apr 29, 2026
20 checks passed
@solababs solababs deleted the sb-28042026-fix-object-profile-file-validation-ihs-217 branch April 29, 2026 09:13
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.

bug: Object file validation requires mandatory attributes even when a profile provides them

3 participants