Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 24 Mar 02:45
· 126 commits to main since this release
ac27498

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 string

The 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"
      }
    }
  }
}

Enum scalar

Behavior changes

  • Change the result of ParseXxx functions to a value instead of a pointer.

What's Changed

Full Changelog: v0.3.0...v0.4.0