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'
The
marathon.MarathonAppobject can be built by passing all the parameters defining an application.It would be nice if there was a way to create
marathon.MarathonAppwith 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.,