-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to generate Scala code from the Fireblocks OpenAPI schema: Unsupported number type: class NumberSchema #353
Comments
I think the problem is that the type number is not given a |
I think the plugin could just use |
Hardly. From what I see in the Fireblocks API, So that must be a mistake in their schema? Does the OpenAPI meta-schema require the |
From what I can see here https://swagger.io/docs/specification/data-models/data-types/ it is not required. They only say that |
Right, that makes sense. What would be the best way to deal with it, and make the tool work? Should I consider a custom type mapping maybe? |
Good question. I think there must be some default, so the parsing code can continue. Then a custom mapping can be used to map this to some other type if needed. |
I just fixed that problem with the number schema, but there are more problems with the fireblocks yaml file :/. For example, there is |
Oh, cool! Thanks for looking into it! |
The plugin can unfortunately not cope with these anonymous objects. There is support for oneOf/allOf (using sealed traits) but only when the are separately defined. It should be doable to get it working, but I'm not sure when this will happen. So unfortunately this plugin won't be of good help here right now. |
I followed the instructions in the README, providing the Fireblocks OpenAPI schema YAML as the source:
The code generation resulted in the following error:
The text was updated successfully, but these errors were encountered: