Skip to content

Request: Integers returned as ints #12

Closed as not planned
Closed as not planned

Description

@tobiasbp

Integers are returned as strings. They should be returned as type int.

Here is the data from a project:

{'priority_end': '3', 'is_everybody_allowed': '0', 'is_public': '0', 'owner_id': '0', 'predefined_email_subjects': None, 'show_default_swimlane': '1', 'is_private': '0', 'priority_start': '0', 'default_swimlane': 'Default swimlane', 'id': '29', 'token': '', 'end_date': '2019-08-18', 'url': {'board': 'https://kanboard.kontrapunkt.com/board/29', 'list': 'https://kanboard.example.com/list/29'}, 'last_modified': '1558972198', 'email': '', 'identifier': '****', 'name': '**', 'start_date': '2019-02-19', 'priority_default': '0'}

Activity

  1. changed the title [-]Integers returned as strings[/-] [+]Request: Integers returned as ints[/+] on May 29, 2019
  2. fguillot commented on Jun 1, 2019

    @fguillot
    Member

    The API response (PHP app) should return the correct types in JSON. The Python client doesn't do any processing.

  3. tobiasbp commented on Jun 2, 2019

    @tobiasbp
    Author

    OK. So I should investigate the JSON returned, and possibly open a request in the Kanboard code?

  4. fguillot commented on Jun 4, 2019

    @fguillot
    Member

    The issue is not specific to the Python client but the JSON returned by the API. Several API procedures returns the data from the database as-is. If I recall correctly, PHP doesn't convert database records to the proper types, or it might be inconsistent depending of database driver.

  5. tobiasbp commented on Jun 5, 2019

    @tobiasbp
    Author

    The issue is not specific to the Python client but the JSON returned by the API.

    So, if this was to be fixed, it would be a change to the kanboard project itself?

  6. fguillot commented on May 18, 2025

    @fguillot
    Member

    So, if this was to be fixed, it would be a change to the kanboard project itself?

    Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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