'allOf' containing 'oneOf' doesn't display in Next's Hub view

In OpenAPI 3 editor in Next, when using a “allOf” that contains an object “oneOf”, the display in Read view is incorrect :

OpenAPI 3 code snippet :

"fileTransfer": {
        "type": "object",
        "description": "The locations used by the etl for files transfer",
        "properties": {
          "input": {
            "description": "The file transfer location where the etl will download the file to load",
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "fileNamePattern": {
                    "type": "string",
                    "description": "The pattern that describes the file name the etl will have to retrieve for each execution. This pattern is an expression that can be ..."
                  }
                }
              },
              {
                "oneOf": [
                  {
                    "type": "object",
                    "title": "ETL Transfer Box File Transfer Location",
                    "description": "The parameters of an ACTITO TransferBox location",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "TRANSFERBOX"
                        ]
                      },
                      "entity": {
                        "type": "string",
                        "description": "The name of the ACTITO entity in which the file will be found on ACTITO TransferBox"
                      }
                    },
                    "required": [
                      "type",
                      "entityRef"
                    ]
                  },
                  {
                    "type": "object",
                    "title": "ETL Remote Input File Transfer Server Location",
                    "description": "The parameters of a remote input file transfer location",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "REMOTE"
                        ]
                      },
                      "remoteLocationId": {
                        "type": "string",
                        "description": "The unique id of the remote file transfer server location where files will be found on or uploaded to"
                      },
                      "deleteFileWhenFinished": {
                        "type": "boolean",
                        "description": "States weither or not the ETL should delete the file when finished. Default is true. If file transfer server is your own server, check that delete right is granted to the account you provided in file transfer server configuration."
                      }
                    },
                    "required": [
                      "type",
                      "remoteLocationId"
                    ]
                  }
                ]
              }
            ]
          }

Read view screenshot :

As you can see, the “input” attribute is marked as “oneOf” when it should not, and real “oneOf” object is not displayed

Though, Spectral linting states that the definition is Valid

Any idea ?

Hey Marc,

Thanks for letting us know! I have let the team know so we can get a fix out for it.