Skip to content
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

Enums can only contain strings #39

Open
jofaul opened this issue Jun 24, 2022 · 2 comments
Open

Enums can only contain strings #39

jofaul opened this issue Jun 24, 2022 · 2 comments
Labels
bug 🪲 Something isn't working @enum Related to the @enum annotation missing annotation An annotation should have been generated automatically but wasn't

Comments

@jofaul
Copy link
Contributor

jofaul commented Jun 24, 2022

Is your feature request related to a problem?

In some cases, enums with values of several types can be useful. This is currently impossible

Desired solution

Enhance enum annotation to be able to choose between types of string/bool/number/none for each enum value.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

Examples:

  • #/sklearn/sklearn.preprocessing._data/normalize/axis
@jofaul jofaul added the enhancement 💡 New feature or request label Jun 24, 2022
@lars-reimann lars-reimann added @enum Related to the @enum annotation bug 🪲 Something isn't working missing annotation An annotation should have been generated automatically but wasn't and removed enhancement 💡 New feature or request labels Jun 25, 2022
@lars-reimann
Copy link
Member

Should be solved by a new annotation. Blocked by Safe-DS/DSL#80.

@lukarade
Copy link
Contributor

lukarade commented Jul 1, 2022

This also affects the generation of Enum-Typ in this case:
#/sklearn/sklearn.feature_selection._mutual_info/mutual_info_regression/discrete_features

@lars-reimann lars-reimann transferred this issue from Safe-DS/API-Editor Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working @enum Related to the @enum annotation missing annotation An annotation should have been generated automatically but wasn't
Projects
Status: Backlog
Development

No branches or pull requests

3 participants