Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1850

[NOT IMPLEMENTED] Rename 'default' in JSON Response

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 1.16.0
    • Fix Version/s: 1.16.1
    • Labels:
      None

      Description

      Invoking

      http://localhost:8080/restful/services/isisApplib.FixtureScriptsDefault/actions/runFixtureScript

      answers:

              "parameters": {
                  "script": {
                      "num": 0,
                      "id": "script",
                      "name": "Script",
                      "description": "",
                      "choices": [
                          {
                              "rel": "urn:org.restfulobjects:rels/value",
                              "href": "http://localhost:8080/restful/objects/domainapp.application.fixture.scenarios.DomainAppDemo/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPG1lbWVudG8-PHBhdGg-PC9wYXRoPjwvbWVtZW50bz4=",
                              "method": "GET",
                              "type": "application/json;profile=\"urn:org.restfulobjects:repr-types/object\"",
                              "title": "Domain App Demo"
                          }
                      ],
                      "default": {
                          "rel": "urn:org.restfulobjects:rels/value",
                          "href": "http://localhost:8080/restful/objects/domainapp.application.fixture.scenarios.DomainAppDemo/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPG1lbWVudG8-PHBhdGg-PC9wYXRoPjwvbWVtZW50bz4=",
                          "method": "GET",
                          "type": "application/json;profile=\"urn:org.restfulobjects:repr-types/object\"",
                          "title": "Domain App Demo"
                      }
                  },
      

      default is a keyword in ActionScript and converting JSON to AS like in https://github.com/joerg-rade/roViz/blob/master/src/main/flex/org/ro/to/AbstractTransferObject.as#L10

      is not possible since 'public var default:Object' is illegal.

      Please rename 'default' into eg. defaultChoice

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              joerg.rade Jörg Rade
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: