gentics / mesh-incubator

Project which is home for planned enhancements for Gentics Mesh
3 stars 0 forks source link

Various RAML properties incorrectly defined as optional #169

Open michaelbromley opened 6 years ago

michaelbromley commented 6 years ago

Gentics Mesh Version, operating system, or hardware.

Operating System

all

Problem

The RAML output which is used to produce the TypeScript interfaces for the UI app has several properties marked as optional which seem to be incorrect. I am currently implementing strict null checking in TypeScript for the UI and these wrongly optional properties are creating false errors all over the code base.

Suspected wrong optional properties

All interfaces which extend AbstractNameUuidReference, since the "name" property is not set to "required", whereas in reality I suspect that the "name" property should be present in all cases.

Also: