Skip to content

Supporting creating applications with a json file (or json-formatted string, or json object) #112

@vincepii

Description

@vincepii

The marathon.MarathonApp object can be built by passing all the parameters defining an application.

It would be nice if there was a way to create marathon.MarathonApp with json content directly.

A workaround, given a json object, would be to use marathon.MarathonApp(**myapp_json), but there would still be issues for method parameters using snake-case and json keys using camelCase:

E.g.,

TypeError: __init__() got an unexpected keyword argument 'upgradeStrategy'

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