Skip to Content
0
May 05, 2020 at 02:38 PM

WARNING: Entity key element should be of type "cds.UUID"?

209 Views

I'm using the Node.js Stack of CAP. I'm using the @odata.draft.enabled annotation for an entity with a key 'ID: Integer'.

The 'cds build' command outputs warnings like "WARNING: Entity key element should be of type "cds.UUID"". Actually, my Fiori v4 UI is not working with 'ID: Integer'. I have to change this to 'ID: UUID'.

Question: Shouldn't 'cds build' throw an error instead of a warning, or is there a way to implement draft without UUID keys?

Regards