iriusrisk / OpenThreatModel

The Open Threat Modeling Format (OTM) defines a platform independent way to define the threat model of any system.
165 stars 13 forks source link

Strict compiling of schema produces warnings #23

Closed jgadsden closed 8 months ago

jgadsden commented 8 months ago

When compiling the OTM schema using ajv version 8.11.0 in strict mode (which is the default) we get the following warnings

jgadsden commented 8 months ago

The reason for the warnings is because 'representations' and 'assets' are defined as arrays but not as arrays of objects

dantolin-iriusrisk commented 8 months ago

Hi, @jgadsden! Thank you for the warning. We'll do the change to keep it clean.

jgadsden commented 8 months ago

OK, do you want me to contribute? Or I can leave it with you

dantolin-iriusrisk commented 8 months ago

As you have the change well identified, feel free to contribute, of course!