add the "ordered" schema attribute property#1150
Open
ajtmccarty wants to merge 1 commit into
Open
Conversation
Deploying infrahub-sdk-python with
|
| Latest commit: |
15eafef
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4174dc45.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://ajtm-07082026-ordered-attr-p.infrahub-sdk-python.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## infrahub-develop #1150 +/- ##
====================================================
+ Coverage 82.35% 82.37% +0.01%
====================================================
Files 138 138
Lines 12065 12067 +2
Branches 1805 1805
====================================================
+ Hits 9936 9940 +4
+ Misses 1573 1572 -1
+ Partials 556 555 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
goes with opsmill/infrahub#9782
Summary by cubic
Adds the
orderedattribute property to schema models and export logic. Defaults to true; exports only includeorderedwhen set to false to keep output clean.ordered: bool = Truetoinfrahub_sdk.schema.main.AttributeSchema._ATTR_EXPORT_DEFAULTSto omit"ordered"when true and include it when false; added a unit test to validate the round-trip.Written for commit 15eafef. Summary will update on new commits.