Skip to content

[client] Added Description getter method for DataField#418

Open
niknegi wants to merge 1 commit intoapache:mainfrom
niknegi:issues/328
Open

[client] Added Description getter method for DataField#418
niknegi wants to merge 1 commit intoapache:mainfrom
niknegi:issues/328

Conversation

@niknegi
Copy link
Contributor

@niknegi niknegi commented Mar 3, 2026

Linked issue: #328

Copy link
Contributor

@charlesdong1991 charlesdong1991 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, left a minor comment

Comment on lines +1496 to +1498
let desc = field_with_desc.description();
assert!(desc.is_some());
assert_eq!(desc.unwrap(), "Unique identifier for the user");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think tests here a bit redundant and re-verifies what the first assert_eq already did

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated this, kept the unwrap assert to check if the actual description string matches what was originally passed

Copy link
Contributor

@fresh-borzoni fresh-borzoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@niknegi TY for the PR, LGTM

Copy link
Contributor

@charlesdong1991 charlesdong1991 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! LGTM!

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.

3 participants