ui5experts / ui5-schemas

:rocket: UI5 Schemas allows you to develop SAPUI5/OpenUI5 XML at a maximum convenience. It downloads, upgrades and sets up SAPUI5/OpenUI5 XML schemas for a better development experience in your favorite IDE (if it is WebStorm ;).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binding Syntax

JarkkoPeltonen opened this issue · comments

All attributes with expression binding and input validation get "Wrong attribute value":
image

Can expression binding be valid input for all attributes?

Hi,

this is a known limitation of the xml schemas provided by SAP. So this could be a feature request for OpenUI5 itself.

Anyways, I was already looking into these kinds of issues and have some ideas for future versions.

Btw: You are not using Expression Binding in your example. I changed title due to that respect.

BR
Chris

Hello,

Can you share your ideas?

I'm thinking of creating custom type that validates the binding. Then assign this type and current type of attribute as union to all attributes.

Br,
Jarkko

That's exactly what I thought of :) The custom type could use a regex to validate the binding syntax (which could get quite complex: Think of Complex Binding and Expression Binding). The simplest implementation would just additionally allow xsd:string everywhere.

You are most welcome to contribute on this.

Closing this for now since it is mentioned in known limitations and I won't have time to fix this anytime soon.