jeudi 16 août 2018

Does swagger UI support "patternproperties"?

I'm writing a swagger contract, and has to use patterProperties, but when veiwing this on swagger UI, it fails. All parent parts appears, and starting the pattern item it disappears.

Here is what I'm trying to process

"nodes": {
        "description": "list of nodes",
        "required": "true",
        "type": "object",
        "patternProperties": {
                  "^[\\S]+$": {
                    "description": "node metada",
                    "required": "true",
                    "type": "object",
                    "properties": {
                      "length": {
                        "description": "node length",
                        "required": "true",
                        "type": "string"
                      },
                      "width": {
                        "description": "node width",
                        "required": "true",
                        "type": "string"
                      }
                    }
                  }
         }
}

Aucun commentaire:

Enregistrer un commentaire