JSON schema form does not support "If Then Else"

Just as demo react-jsonschema-form playground shows

I copied json form schema to JSON schema form component settings

{
  "type": "object",
  "properties": {
    "animal": {
      "enum": [
        "Cat",
        "Fish"
      ]
    }
  },
  "allOf": [
    {
      "if": {
        "properties": {
          "animal": {
            "const": "Cat"
          }
        }
      },
      "then": {
        "properties": {
          "food": {
            "type": "string",
            "enum": [
              "meat",
              "grass",
              "fish"
            ]
          }
        },
        "required": [
          "food"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "animal": {
            "const": "Fish"
          }
        }
      },
      "then": {
        "properties": {
          "food": {
            "type": "string",
            "enum": [
              "insect",
              "worms"
            ]
          },
          "water": {
            "type": "string",
            "enum": [
              "lake",
              "sea"
            ]
          }
        },
        "required": [
          "food",
          "water"
        ]
      }
    },
    {
      "required": [
        "animal"
      ]
    }
  ]
}

can not cascade select options

I guess the @rjsf/core npm packages is not latest version ,so could retool upgrade?

Hi @hafeyang :wave:

That's really interesting there :thinking: I haven't yet come across this however I can see how it can be tremendously helpful when someone wants to dynamically generate a form in Retool. There maybe work-arounds we can implement to generate something similar but a form of direct methodology would be fantastic!

because we are deep user of retool
I am not checking the demo works right , in fact ,it is really helpful in my daily work
so,pls ,pls,upgrade rjsf package
@Pawan

Hi @hafeyang,

I was told we're at 2.1.0 but RJSF is currently at 4.1.1. We are working diligently on upgrading this piece for everyone but please be patient with us. I'd definitely recommend post in the Feature Request section of this community as well

Any update on this since April?