This repository was archived by the owner on Mar 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Generator cannot handle empty schema #92
Comments
The empty That the mapping does not work is unexpected. I wonder what's going wrong there. |
it is now possible and necessary to add a type mapping for this case. That the processor does not generate code for the empty schema is caused by another case that must not generate a class. Nothing I want to touch right now, so I just added the missing mapping possibility for now. |
released in |
Works now with 2022.3, thank you! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a read only part of an API where the content has no schema. At this point a Javascript
any
or JavaObject
would be the appropriate representation. Looking for the OpenApi specification for that, an empty schema seems to be the right definition (see SO https://stackoverflow.com/a/43328994/12890):Doing so this type is not generated nor replaced by Object, it is simply not handled. Even an explicit type mapping (to java.lang.Object e.g.) is ignored so the generated code is not compiling.
The only work around I found looks like this (I don't need array):
and an explicit type mapping
I am using
openapi-processor-maven-plugin
version 2021.1 withopenapi-processor-spring
version 2022.2.The text was updated successfully, but these errors were encountered: