Skip to content

Conversation

@smoyer64
Copy link

Resolves #151

This PR heeds the advice that a variant type field is problematic in a strongly typed language like Go. In addition, care was taken to be completely backwards compatible with existing applications using this library. This requires a small trade-off and custom marshaling and unmarshaling for the new Type type.

Existing tests pass, and tests were added for the new Type type's functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

schema.Type should be string or []string

1 participant