Skip to content

feat: add check to see if response is flat - #19

Merged
eyalr1100 merged 1 commit into
masterfrom
feat/add-flat-user-data-response
Mar 5, 2026
Merged

eyalr1100 merged 1 commit into
masterfrom
feat/add-flat-user-data-response

Conversation

@eyalr1100

Copy link
Copy Markdown
Contributor
Question Answer
Bug fix ✖
New feature ✔
Breaking change ✖
Deprecations ✖
Documentation ✖
Tests added ✖
Chore ✖

Related issues: #XXX , #XXX ...
Closes #XXX ...

Further information:
Added option to plug and api that returns a user with flat response and not mapped

@eyalr1100
eyalr1100 requested a review from NivGreenstein March 5, 2026 16:58
@NivGreenstein

Copy link
Copy Markdown
Contributor

What about jira ticket?

enrichedResponse.user = {
name: feedbackResponse.geocodingResponse.userId as string,
};
if (userId !== undefined) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if (userId) ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

userId is string so eslint errors when you check for nullish.
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly.eslint@typescript-eslint/strict-boolean-expressions

@eyalr1100
eyalr1100 merged commit 8c9ab9a into master Mar 5, 2026
@eyalr1100
eyalr1100 deleted the feat/add-flat-user-data-response branch March 5, 2026 17:14
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.

2 participants