Uses some example JSON data to add fields to a type at compile time. Can use an inline JSON string, a local file, or web content.
@:structInit
@:build(interlude.macro.JsonProvider.sampleString('{ "foo": 123.45 }'))
class Example {}
...
var a:Example = {}; // Compile error: Object requires field foo
var b:Example = { foo: "bar" }; // Compile error: String should be Float