cortoproject / corto

A hierarchical object store for connecting realtime machine data with web applications, historians & more
https://www.corto.io
MIT License
86 stars 14 forks source link

Allow specifying default values in model #652

Closed SanderMertens closed 6 years ago

SanderMertens commented 6 years ago

Currently default values can only be specified in init hooks. To allow for a more declarative approach, it should be possible to annotate the model with defaults. For example:

struct Point:/
    x: int32, default = "10"
    y: int32, default = "20"