Skip to content

API and Python case mismatches #24

@dsoper2

Description

@dsoper2
  1. Input for the Python SDK matches what the API expects and is PascalCase:
    "api_body": {
    "Name":"sjc07-r13-hx-edge-2",
    "MgmtPlatform":"EDGE",
    "Description":"3 node Edge M5 cluster"
    Output from the SDK is snake_case so I currently have internal deserialize methods exposed for the conversion:

check object properties

                    data_module = import_module(item['data_module'])

                    data_class = getattr(data_module, item['data_class'])
                    deserialize_instance = ApiClient()
                    data_object = deserialize_instance._ApiClient__deserialize_model(item['api_body'], data_class)
                    deserialize_dict = data_object.to_dict()
                    props_match = compare_values(deserialize_dict, response_dict)

We would like to have consistent input/output from the API to help in compares.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions