XMLWordPrintable

Details

    • Sub-task
    • Status: Accepted
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • WS-Workunit Server
    • None
    • Point

    Description

      When a request expects an array of strings, the sample request has 1 level of nesting too many.

      For WUDetails it is currently

      {
        "WUDetails": {
          "WUID": "String",
          "ScopeFilter": {
            "MaxDepth": 9999,
            "Scopes": {
              "Scope": [
                "String"
              ]
            },
            "Ids": {
              "id": [
                "String"
              ]
            },
            "ScopeTypes": {
              "ScopeType": [
                "String"
              ]
            },
            "PropertyFilters": {
              "PropertyFilter": [
                {
                  "Name": "String",
                  "ExactValue": "String",
                  "MinValue": "String",
                  "MaxValue": "String"
                }
              ]
            }
          },
          "NestedFilter": {
            "Depth": 9999,
            "ScopeTypes": {
              "ScopeType": [
                "String"
              ]
            }
          },
          "PropertiesToReturn": {
            "AllStatistics": false,
            "AllAttributes": false,
            "AllHints": false,
            "MinVersion": "String",
            "Measure": "String",
            "Properties": {
              "Property": [
                "String"
              ]
            },
            "ExtraProperties": {
              "Extra": [
                {
                  "scopeType": "String",
                  "Properties": {
                    "Property": [
                      "String"
                    ]
                  }
                }
              ]
            }
          },
          "Filter": "String",
          "ScopeOptions": {
            "IncludeMatchedScopesInResults": true,
            "IncludeScope": true,
            "IncludeId": false,
            "IncludeScopeType": false
          },
          "PropertyOptions": {
            "IncludeName": true,
            "IncludeRawValue": false,
            "IncludeFormatted": true,
            "IncludeMeasure": true,
            "IncludeCreator": false,
            "IncludeCreatorType": false
          }
        }
      }
      

      But it should be:

      {
        "WUDetails": {
          "WUID": "String",
          "ScopeFilter": {
            "MaxDepth": 9999,
            "Scopes": [
                "String"
              ],
            "Ids": [
                "String"
              ],
            "ScopeTypes": [
                "String"
              ],
            "PropertyFilters": {
              "PropertyFilter": [
                {
                  "Name": "String",
                  "ExactValue": "String",
                  "MinValue": "String",
                  "MaxValue": "String"
                }
              ]
            }
          },
          "NestedFilter": {
            "Depth": 9999,
            "ScopeTypes": [
                "String"
              ]
          },
          "PropertiesToReturn": {
            "AllStatistics": false,
            "AllAttributes": false,
            "AllHints": false,
            "MinVersion": "String",
            "Measure": "String",
            "Properties": [
                "String"
              ],
            "ExtraProperties": {
              "Extra": [
                {
                  "scopeType": "String",
                  "Properties": [
                      "String"
                    ]
                }
              ]
            }
          },
          "Filter": "String",
          "ScopeOptions": {
            "IncludeMatchedScopesInResults": true,
            "IncludeScope": true,
            "IncludeId": false,
            "IncludeScopeType": false
          },
          "PropertyOptions": {
            "IncludeName": true,
            "IncludeRawValue": false,
            "IncludeFormatted": true,
            "IncludeMeasure": true,
            "IncludeCreator": false,
            "IncludeCreatorType": false
          }
        }
      }
      

      Attachments

        Activity

          People

            afishbeck Anthony Fishbeck
            gordonsmith Gordon Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: