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

Add support for "JSON" type in the generators #1

Open
crimson-knight opened this issue May 19, 2023 · 0 comments
Open

Add support for "JSON" type in the generators #1

crimson-knight opened this issue May 19, 2023 · 0 comments

Comments

@crimson-knight
Copy link
Member

Currently in v1.3.2, if you try using a generator with a column type of json you will get an error.

So this:

amber g model person custom_attributes:json

Will produce an error similar to:

2023-05-19T12:55:40.539553Z   INFO - generate: Generating Amber::CLI::Api
Unhandled exception: type json not available (Exception)

Let's add support for that. It may also require some changes to Granite to ensure that the JSON and JSONB column types map properly to JSON::Any or some kind of serializer.

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