v0.4.0
Highlights
Support schema for NDC spec v0.1.1 with TypeRepresentation and enum. You can define the enum type with @enum comment tag. The data type must be an alias of string.
// @enum <values separated by commas>
//
// example:
//
// SomeEnum some enum
// @enum foo, bar
type SomeEnum stringThe tool will help generate schema, constants, and helper methods for it.
{
"scalar_types": {
"SomeEnum": {
"aggregate_functions": {},
"comparison_operators": {},
"representation": {
"one_of": ["foo", "bar"],
"type": "enum"
}
}
}
}Behavior changes
- Change the result of
ParseXxxfunctions to a value instead of a pointer.
What's Changed
Full Changelog: v0.3.0...v0.4.0
