Open CXwudi opened 8 months ago
To generate the model only, we can reuse the command we have in https://github.com/VocaDB/vocadb-openapi-client-java but add --global-property models
, see https://github.com/OpenAPITools/openapi-generator/issues/12754#issuecomment-1282285724
However, not sure if it works for us
Actually, is it possible that Maven/Gradle excluding transitive dependencies would be enough?
Instead of generating the whole client, just generate the DTOs is better and allow users to use whatever client they want
However, it is shown that our hack of allowing Enum class name ended with "s" to support multiple unique enum value is necessary. Because in API call, such as
GET /api/songs
with the parameterfields
, It must be a column separated list with unique elements likefields=tags,pvs
. Using something else likefields=tags&fields=pvs
won't workWe are also fixed in Jackson because the model is problematic with Gson, see https://github.com/CXwudi/vocadb-openapi-java-client-autofixer#before-generate