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

Apps API is not properly represented with openapi codegen #493

Open
duytiennguyen-okta opened this issue Nov 7, 2024 · 1 comment
Open
Labels
bug Something isn't working stale

Comments

@duytiennguyen-okta
Copy link
Contributor

Describe the bug?

Discriminator property is coming as "null" for some type of applications due to which returned response is not mapped to any polymorphic type. For ex-
GET /api/v1/apps?filter=name eq "active_directory"
Response:

[
    {
        "id": "0oa12ensf1P3tOPdF7k6",
        "orn": "orn:okta:idp:00o12eniiOtpqtsAZ7k6:apps:active_directory:0oa12ensf1P3tOPdF7k6",
        "name": "active_directory",
        "label": "iwa.dc",
        "status": "ACTIVE",
        "lastUpdated": "2024-11-05T20:58:46.000Z",
        "created": "2024-09-18T17:29:34.000Z",
        "accessibility": {
            "selfService": false,
            "errorRedirectUrl": null,
            "loginRedirectUrl": null
        },
        "visibility": {
            "autoSubmitToolbar": false,
            "hide": {
                "iOS": false,
                "web": false
            },
            "appLinks": {}
        },
        "features": [
            "IMPORT_PROFILE_UPDATES",
            "PROFILE_MASTERING",
            "OUTBOUND_DEL_AUTH",
            "IMPORT_USER_SCHEMA",
            "IMPORT_NEW_USERS"
        ],
        "signOnMode": null,
        "credentials": {
            "userNameTemplate": {
                "template": "substringBefore(user.login, \"@\") + \"@\" + target_app.namingContext",
                "type": "CUSTOM",
                "pushStatus": "NOT_CONFIGURED"
            },
            "signing": {}
        },
        "settings": {
            "app": {},
            "notifications": {
                "vpn": {
                    "network": {
                        "connection": "DISABLED"
                    },
                    "message": null,
                    "helpUrl": null
                }
            },
            "manualProvisioning": false,
            "implicitAssignment": false,
            "emOptInStatus": "NONE"
        },
    }
]

What is expected to happen?

Map to ListApplications200ResponseInner

What is the actual behavior?

Unable to map to ListApplications200ResponseInner because signOnMode is null

Reproduction Steps?

This is an issue with codegen

Additional Information?

No response

Golang Version

1.21

SDK Version

v5

OS version

No response

@duytiennguyen-okta duytiennguyen-okta added the bug Something isn't working label Nov 7, 2024
Copy link

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.

@github-actions github-actions bot added the stale label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant