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

Null Type Not Working With Enum #4422

Open
4 tasks done
aress31 opened this issue Dec 18, 2024 · 0 comments
Open
4 tasks done

Null Type Not Working With Enum #4422

aress31 opened this issue Dec 18, 2024 · 0 comments
Labels
bug needs triage Initial label given, to be assigned correct labels and assigned

Comments

@aress31
Copy link

aress31 commented Dec 18, 2024

Prerequisites

What theme are you using?

mui

Version

5.x

Current Behavior

When defining a property with an enum, e.g.:

{
  "schema": {
    "type": "object",
    "definitions": {
      "status": {
        "enum": ["active", "cancelled", "completed", "inactive", "pending"]
      }
    },
    "properties": {
      // --- SNIP ---
      "status": {
        "type": ["string", "null"],
        "$ref": "#/definitions/status"
      },
      // --- SNIP ---
    }
  },
  "uiSchema": {
    // --- SNIP ---
  }
}

Null values are still not accepted, see:

image

Expected Behavior

No response

Steps To Reproduce

No response

Environment

Latest everything.

Anything else?

No response

@aress31 aress31 added bug needs triage Initial label given, to be assigned correct labels and assigned labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs triage Initial label given, to be assigned correct labels and assigned
Projects
None yet
Development

No branches or pull requests

1 participant