Skip to content

No error on using "ViewID" instead of "ViewId" in targets section #9

@pubmikeb

Description

@pubmikeb

Investigation the issue #7, I've paid attention there is no error when using ViewID instead of ViewId:

"myTarget1": {
	"viewID": "target1",
	"viewLevel": 3,
	"viewName": "Target 1",
	"viewPath": "webapp.view.target1"
},
"myTarget2": {
	"viewId": "target2",
	"viewLevel": 2,
	"viewName": "Target 2",
	"viewPath": "webapp.view.target2"
}

Although JSON is a case sensitive.
What's really strange, if I write ViewName instead of viewName, I'll gate an error.

Please check why schema ignores a wrong case by viewId.

P.S. BTW, if viewID appears more then 1 time in JSON, then no warning, but if viewID appears only once, then IDE returns an error and proposes viewId instead and only if "flexEnabled": true. In a case "flexEnabled": false, there is no any error for viewID even if it appears only once in the targets section of a JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions