-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issue getting inference working #26
Comments
Hi @tekanic,
I'm sorry but I cannot tell you exactly what is wrong with the information you provided. Could you describe a bit more how you have setup the library? And in which context you are calling |
In my application.cr file I have the following setup:
In my routes.cr file I have the following after the Amber::Server.configure block:
In my controllers I require openapi-generator/helpers/amber like so:
Is there something I'm doing incorrectly? Perhaps, I did not understand the documenation. I am using the latest version of crystal and amber. Thanks for the help! |
In my controllers (index method), I typically build a json response that looks like this...
How would I programmatically create a schema for this type of response? Is this enough information or is there something specific that I'm missing? Thanks! |
I setup my amber project with openapi-generator but when I try to get inference working I'm getting a build error that has something to do with the helpers...
There was a problem expanding macro 'macro_4654287824'
Code in lib/openapi-generator/src/openapi-generator/helpers/amber.cr:336:5
336 | {% for method_name, content_type in TYPE %}
^
Called macro defined in lib/openapi-generator/src/openapi-generator/helpers/amber.cr:336:5
336 | {% for method_name, content_type in TYPE %}
Which expanded to:
The text was updated successfully, but these errors were encountered: