shuttle-hq / synth

The Declarative Data Generator
https://www.getsynth.com/
Apache License 2.0
1.39k stars 109 forks source link

feat: add a hidden flag to object fields to omit them from the output #175

Closed vlushn closed 3 years ago

vlushn commented 3 years ago

This is a very early attempt, and I am opening this to get feedback on direction mainly at this point.

The idea is to allow a declaration hidden: true on object fields that then means the field participates in the graph but only until the object gets serialised. This is very handy for example when you want to have an object whose fields you want to then split out across multiple sub-fields (for example with format).

Closes #177