Skip to Content

Schema error Neo-App json: data has additional properties

Hi Experts,

I am practicing in HCP trial, but i need your help. I have the following error in the file "neo-app.json": error: Schema error: Neo-App Json: data- has additiona properties.

I verify the structure of the source code, but I really do not find the problem.

EXAMPLE CODE:

{

"welcomeFile": "/webapp/index.html",

"routes": [

{

"path": "/webpagname",

"target":

{

"type": "destination",

"name": "webpagesample01"

},

"description": "Web Page Name"

},

{

"path": "/resources",

"target": {

"type": "service",

"name": "sapui5",

"entryPath": "/resources"

},

"description": "SAPUI5 Resources"

},

{

"path": "/resources",

"target": {

"type": "service",

"name": "sapui5",

"entryPath": "/test-resources"

},

"description": "SAPUI5 Test Resources"

}

],

"sendWelcomeFileDirect": true

}

Any idea??

Thanks for your help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 21, 2017 at 10:42 PM

    Hi Pablo,

    the path /resources is defined two times. Delete the second JSON Object and the error should disappear.

    {
    "path": "/resources",
    "target": {
    "type": "service",
    "name": "sapui5",
    "entryPath": "/test-resources"
    },
    "description": "SAPUI5 Test Resources"
    }

    Best regards

    Daniel

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 21, 2017 at 10:51 PM

    Yeap....that's right.

    Thank you so much!! Daniel.

    Add comment
    10|10000 characters needed characters exceeded