rpetrich / deciduous

App that simplifies building decision trees to model adverse scenarios
https://deciduous.app
GNU General Public License v2.0
180 stars 17 forks source link

Publish a schema definition #53

Open JonZeolla opened 11 months ago

JonZeolla commented 11 months ago

I'd like to be able to programmatically generate threat models in a deciduous.app compatible format.

rpetrich commented 10 months ago

A basic schema is now published as part of the types in https://github.com/rpetrich/deciduous/blob/master/layout.ts. TypeScript cannot 100% represent the precise type shapes, so consider SingleNamedProperty to describe a single arbitrarily-named property representing the ID of some node.