Workaround for "ERRORUNKNOWN" issue in code libraries generated from Zuora's Swagger spec
Update 5 May, 2019: The issue described in this post appears to be fixed in the latest version of swagger-codegen 2.x. See below for more information.
We have identified an issue in the latest version of swagger-codegen 2.x that affects code libraries generated from Zuora's Swagger spec. The issue is known to affect Python and Java libraries. It may also affect other languages.
When using a Python library that was generated with swagger-codegen 2.4.4, you will receive an error such as:
File "/Users/username/python-client/swagger_client/models/account_object_custom_fields.py", line 19, in <module> from swagger_client.models.errorunknown import ERRORUNKNOWN # noqa: F401,E501
When using a Java library that was generated with swagger-codegen 2.4.4, you will receive an error such as:
[ERROR] /Users/username/java-client/src/main/java/io/swagger/client/model/SubscriptionProductFeatureObjectCustomFields.java:[28,83] cannot find symbol [ERROR] symbol: class ERRORUNKNOWN
As a workaround, we have provided a separate Swagger spec that avoids the issue. You can use this Swagger spec when generating code libraries:
Our workaround should have minimal impact on the functionality of generated code libraries, but please reply to this post if you do experience any errors or unexpected behavior.
For more information about the issue and the workaround we have applied, see https://github.com/swagger-api/swagger-codegen/issues/9379.
Re: Workaround for "ERRORUNKNOWN" issue in code libraries generated from Zuora's Swagger s
The issue described above appears to be fixed in the latest version of swagger-codegen 2.x (version 2.4.5). When generating code libraries, you should be able to use the usual Swagger spec, which is located at http://assets.zuora.com/zuora-documentation/swagger.yaml
We plan to continue providing the separate Swagger spec (swagger-codegen-workaround.yaml) until June 2019.
Please reply to this post if you have any questions or concerns.