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

API examples use incorrect Python boolean #270

Open
dataprolet opened this issue Jan 23, 2025 · 0 comments
Open

API examples use incorrect Python boolean #270

dataprolet opened this issue Jan 23, 2025 · 0 comments

Comments

@dataprolet
Copy link

The docs for the API have a lot of incorrect Python examples: Boolean need to be capitalized in Python, but they're not in the examples.

I could open a pull request, but last time I was asked to open an issue instead, so here we go.

Here's an example from src/pages/ipa/resources/setup-keys.mdx which would not work because of the keys valid and ephemeral:

[
  {
    "id": 2531583362,
    "name": "Default key",
    "expires": "2023-06-01T14:47:22.291057Z",
    "type": "reusable",
    "valid": true,
    "revoked": false,
    "used_times": 2,
    "last_used": "2023-05-05T09:00:35.477782Z",
    "state": "valid",
    "auto_groups": [
      "ch8i4ug6lnn4g9hqv7m0"
    ],
    "updated_at": "2023-05-05T09:00:35.477782Z",
    "usage_limit": 0,
    "ephemeral": true,
    "key": "A6160****"
  }
]
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

No branches or pull requests

1 participant