openfoodfacts / open-prices

An open database of prices 🧾💸💰🏷️🤑🍽️
https://prices.openfoodfacts.org
GNU Affero General Public License v3.0
42 stars 12 forks source link

OpenAPI generator : Blank enum is not correctly generated #530

Open AdrienMDevMobile opened 1 month ago

AdrienMDevMobile commented 1 month ago

Blank enum class is not correctly generated for the Kotlin project

The correction can easily be hand made : https://github.com/AdrienMDevMobile/openfoodfactApiKotlin/commit/3c03b410da6ab3aabfe6d22a288c9a2f1a434986#diff-8c6fe083fc223506054754bf477a90bfd717bd17bdc577d669d1dfaf0a39ef82R29

But I will look at how to not have to hand made fix it and rather fixe directly the openAPI For instance : https://stackoverflow.com/questions/73244706/spring-boot-openapi-swagger-enums-with-empty-strings-generates-empty-inste

AdrienMDevMobile commented 1 month ago

This generated error is tightly connected to https://github.com/openfoodfacts/open-prices/issues/522#issuecomment-2416764095 because classes using oneOf are the only affected by this issue.