Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXCDT-232: Add omitempty to IdentityAPI on AzureAD options #119

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

sergiught
Copy link
Contributor

@sergiught sergiught commented Oct 13, 2022

🔧 Changes

This PR adds the omitempty json tag so we prevent sending this field as "null" in case it is not set.

The API only accepts 2 values:

{ "statusCode": 400, "error": "Bad Request", "message": "The identity_api property contains an invalid value. Valid values are 'azure-active-directory-v1.0', 'microsoft-identity-platform-v2.0'", "errorCode": "invalid_body" }

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@sergiught sergiught self-assigned this Oct 13, 2022
@sergiught sergiught marked this pull request as ready for review October 13, 2022 07:55
@sergiught sergiught requested a review from a team as a code owner October 13, 2022 07:55
@sergiught sergiught merged commit c4dc084 into main Oct 14, 2022
@sergiught sergiught deleted the patch/DXCDT-232-waad-identity-api branch October 14, 2022 11:55
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