Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes the LiquidityPoolResponse class by adding the required modifier to always-present properties and updating the class to use strongly-typed generic Link<T> objects. The changes also add missing properties (LastModifiedLedger and LastModifiedTime), comprehensive XML documentation, and update test data to match real Horizon API responses.
Key Changes:
- Added
requiredmodifiers to all properties that are always present in Horizon API responses - Changed
Linktypes to strongly-typedLink<T>with appropriate type parameters - Added missing
LastModifiedLedgerandLastModifiedTimeproperties - Removed the
#nullable disabledirective, embracing nullable reference types
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| StellarDotnetSdk/Responses/LiquidityPoolResponse.cs | Added required modifiers, comprehensive XML documentation, missing properties, strongly-typed links, and made classes sealed |
| StellarDotnetSdk.Tests/TestData/Responses/liquidityPool.json | Updated test data with real Horizon API response format including new fields and corrected structure |
| StellarDotnetSdk.Tests/TestData/Responses/liquidityPoolPage.json | Added missing _links section to the page response test data |
| StellarDotnetSdk.Tests/Responses/LiquidityPoolDeserializerTest.cs | Refactored duplicate assertion code into a shared helper method AssertTestData and updated assertions to match new test data |
Contributor
|
bugbot run |
8b73762 to
46f22ea
Compare
jopmiddelkamp
requested changes
Dec 4, 2025
jopmiddelkamp
approved these changes
Dec 4, 2025
added 3 commits
December 4, 2025 13:12
9301a1d to
5363251
Compare
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.
Types of changes
LiquidityPoolResponseclass #105requiredmodifier to always-present propertiesNote
Updates
LiquidityPoolResponseto use required properties, add last-modified fields, and strongly-typed links; updates tests and fixtures to new Horizon responses.StellarDotnetSdk/Responses/LiquidityPoolResponse.cs):sealed; add XML docs.required(id,fee_bp,type,total_trustlines,total_shares,reserves,_links,paging_token).last_modified_ledgerandlast_modified_timefields._linksto strongly-typedLink<T>:operations->Link<Page<OperationResponse>>,self->Link<LiquidityPoolResponse>,transactions->Link<Page<TransactionResponse>>.effectslink support.LiquidityPoolDeserializerTestto use sharedAssertTestDataand validate new fields/typed links.Responses/liquidityPool.jsonwith Horizon testnet URLs, new pool id, reserves, and new last-modified fields.Responses/liquidityPoolPage.jsonwith page and record link structures.Written by Cursor Bugbot for commit 8bfb9db. Configure here.