Skip to content

API examples use incorrect Python boolean #270

@dataprolet

Description

@dataprolet

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****"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions