Closed RieksJ closed 5 years ago
curious! If trace
is some kind of special word in javascript, how can we prevent using keywords? Is this a never-ending list?
Issue occurs due to use of restangular library. Issue already mentioned there mgonto/restangular#1107
List of words that cannot be used as interface label are the restangular Element and Collection methods.
Maybe the .plain() method will help. I'll look into this later.
.plain() method does not help. We have two options:
As of version v1.5.3 of Restangular (a library we use for API calls) a settings is introduced called setPlainByDefault
. This prevents Restangular methods being added to resources, which caused the problem that certain labels (e.g. trace, get, post, put) could not be used.
This fix will be available in the next release.
Consider the following script:
When you run the generated prototype, the
trace
field does not show anything. This is wrong, sincetrace
is a functional relation and the script does not produce errors.