Skip to content

fix: add expand=providers query param and providers field for getDevice - #1710

Open
prachi-okta wants to merge 1 commit into
masterfrom
OKTA-1273483-device-get-expand-param
Open

prachi-okta wants to merge 1 commit into
masterfrom
OKTA-1273483-device-get-expand-param

Conversation

@prachi-okta

Copy link
Copy Markdown
Contributor

Summary

  • getDevice was missing the expand query parameter, so expand=providers could never be sent even though the real Devices API supports it via DeviceIdentityFacadeV1.getDevice.
  • Adds the expand query parameter (enum: [providers], the only value with real effect on this endpoint) to the getDevice operation in src/swagger/api.yaml.
  • Adds a providers property to the Device schema, backed by a new DeviceProviderInfo schema (provider, payloadVersion, payload) matching the internal DeviceProviderInfo DTO shape.

Jira: OKTA-1273483

Test plan

  • Regenerated sources via mvnw -pl api,impl -am generate-sources / compile — build succeeds; generator error count unchanged from baseline (pre-existing, unrelated $ref warnings)
  • Verified generated DeviceApi.getDevice(String deviceId, String expand, ...) now passes expand as a query parameter
  • Verified generated Device.java now has a providers field of type List<DeviceProviderInfo>, and DeviceProviderInfo.java was generated with provider/payloadVersion/payload

AI Attribution: ai-agent-authored

…ce (OKTA-1273483)

The getDevice operation was missing the expand query parameter, so
provider data could never be requested even though the real Devices
API supports expand=providers via DeviceIdentityFacadeV1.getDevice.

Adds the expand query parameter (enum: providers) to the getDevice
operation and a providers property on the Device schema, backed by a
new DeviceProviderInfo schema (provider, payloadVersion, payload).

Co-Authored-By: Claude Code
@aniket-okta
aniket-okta self-requested a review September 17, 2026 06:12
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