eclipse-archived / unide

Eclipse Public License 1.0
29 stars 17 forks source link

Difference in metaData type #45

Closed ameinhardt closed 5 years ago

ameinhardt commented 5 years ago

https://www.eclipse.org/unide/images/specification/v2/processPayload.svg suggests, that metaData contains values of type String. Yet, the json schema doesn't enforce that. metaData is just of type: Object. Let's clarify

ameinhardt commented 5 years ago

I have fixed the mismatch in the v2 schema with commit https://github.com/eclipse/unide/commit/747377d758f2ff850c6e1b204e0de07e10cec513. The validation interface at https://unide.eclipse.org/rest/v2/validate would now respond with:

{"device.metaData.test":"array found, string expected"}

The website also lists the field