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

Python snippets do not show @odata.* properties correctly. #1955

Open
jasonjoh opened this issue Feb 21, 2024 · 0 comments
Open

Python snippets do not show @odata.* properties correctly. #1955

jasonjoh opened this issue Feb 21, 2024 · 0 comments
Labels
area: snippets-generation Describes a required fix to the snippet generator

Comments

@jasonjoh
Copy link
Member

Context: https://github.com/microsoftgraph/microsoft-graph-docs-contrib/issues/9107

Examples 2 & 3 from Create group have this:

additional_data = {
    "owners@odata_bind" : [
        "https://graph.microsoft.com/v1.0/users/99e44b05-c10b-4e95-a523-e2732bbaba1e",
    ],
    "members@odata_bind" : [
        "https://graph.microsoft.com/v1.0/users/6ea91a8d-e32e-41a1-b7bd-d2d185eed0e0",
        "https://graph.microsoft.com/v1.0/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e",
    ],
}

The correct property names should use a ., not a _, so the correct code should be:

additional_data = {
    "[email protected]" : [
        "https://graph.microsoft.com/v1.0/users/99e44b05-c10b-4e95-a523-e2732bbaba1e",
    ],
    "[email protected]" : [
        "https://graph.microsoft.com/v1.0/users/6ea91a8d-e32e-41a1-b7bd-d2d185eed0e0",
        "https://graph.microsoft.com/v1.0/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e",
    ],
}
@millicentachieng millicentachieng added the area: snippets-generation Describes a required fix to the snippet generator label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: snippets-generation Describes a required fix to the snippet generator
Projects
None yet
Development

No branches or pull requests

2 participants