Chaffelson / nipyapi

A convenient Python wrapper for Apache NiFi
Other
243 stars 76 forks source link

Fix exportFlowVersion by setting the output to an object #355

Closed michaelarnauts closed 3 weeks ago

michaelarnauts commented 3 weeks ago

Modifies the output of exportFlowVersion to an object instead of string.

Fixes https://github.com/Chaffelson/nipyapi/issues/354

michaelarnauts commented 3 weeks ago

Another fix could be to modify the behaviour in the api_client file so it doesn't try to json.loads (here: https://github.com/Chaffelson/nipyapi/blob/main/resources/client_gen/swagger_templates/api_client.mustache#L231) when the result should be a string anyway.

This doesn't require a change to the swagger, so the NiFI documentation can stay as it is.