Skip to content
  • Zoran Regvart's avatar
    CAMEL-12420: Swagger enums for array types · 6c260ab0
    Zoran Regvart authored
    When specifying the parameter of an `array` type, the `enum` property
    needs to be set on the `items` property. So instead of:
    
    ```json
    {
      "name": "...",
      "type": "array",
      "items": {
        "type": "..."
      },
      "enum": [...]
    
    ```
    
    We should define as:
    
    ```json
    {
      "name": "...",
      "type": "array",
      "items": {
        "type": "...",
        "enum": [...]
      }
    
    ```
    6c260ab0