Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveRecordGenerator does not handle records that are inside of a Union #123

Open
DeeChau opened this issue Jul 12, 2021 · 0 comments
Open

Comments

@DeeChau
Copy link
Collaborator

DeeChau commented Jul 12, 2021

Usually fields of type "record" are stored as t.json for active-record.

The following is is not handled correctly for the Deimos::Generators::ActiveRecordGenerator
e.g. in Generated.avsc

{
  "name": "an_optional_record",
  "doc": "an optional record",
  "type": [ "null", "ARecord" ],
  "default": null
}

And it generates as: t.string :an_optional_record rather than t.json :an_optional_record.

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

No branches or pull requests

1 participant