SAP / ui5-manifest

This project contains the flattend json schema for the ui5 manifest.
Apache License 2.0
30 stars 9 forks source link

"Value should be one: false" when using "sap.ui5/flexEnabled": true #7

Closed pubmikeb closed 4 years ago

pubmikeb commented 4 years ago

When specifying sap.ui5/flexEnabled, IDE proposes two possible values: true or false: 02_222225

If I select true, then I have an error «Value should be one: false»: 02_222407

If I select false, then everything is OK.

Please check why it's impossible to specify true for sap.ui5/flexEnabled.

P.S. Perhaps, leads to https://github.com/SAP/ui5-manifest/issues/8

petermuessig commented 4 years ago

Hi @pubmikeb,

can you please provide us the manifest.json you used? We would like to understand this a bit more in detail. In the schema there is a selection between flexEnabled false and true which uses different definitions for sub-sections.

Maybe this is an issue related to the schema validation itself and how it selects interprets the schema files and applies them.

THX and best regards, Peter

pubmikeb commented 4 years ago

Hi @petermuessig,

I've rechecked the manifest, it looks like there was a problem in manifest itself — targets section I've used viewID instead of viewId, once I fixed it, IDE doesn't return any error for ap.ui5/flexEnabled = true.

That just proves how it is critical to have a code completion as much as possible.