jsonapi-swagger
jsonapi-swagger copied to clipboard
Create a JSONAPI Swagger.
I have a model in a module: ``` module MyProject class MyModel # associations, etc end end ``` And a resource with the same structure: ``` module MyProject class MyModelResource...
This fixes where the generator attempts to call `I18n.t(key, params)` where `params` is a hash while `I18n.t[ranslate]` expects kwargs. Support for this behavior was removed in ruby 3. See also...
Good time of day, this error jumps out after running 'bundle exec rails generate jsonapi: swagger User'. Rails version 6.1.3, Ruby 3.0.0 ![Снимок экрана от 2021-03-18 10-20-34](https://user-images.githubusercontent.com/32396281/111588232-4f688b00-87d4-11eb-895c-e13ec501d9b2.png)
Fix body parameter not using 'schema'. Also provide a default description. Also let basePath be nil.
Few changes here (happy to open separate PRs if you prefer). 1. Use 'schema' in body params instead of 'type'. OpenAPI requires a `"in": "body"` parameter to use a `schema`...
If the following `JSONAPI::Resources` configuration is used: ``` JSONAPI.configure do |config| config.json_key_format = :camelized_key ... ``` it is expected to see camelized properties names in generated result, e.g. `createdAt` instead...
Fixes #3 --- This change is [](https://reviewable.io/reviews/superiorlu/jsonapi-swagger/4)
This pull will add the page parameters, links and metadata when the `paged` paginator has been set for a resource or when it is the default for `JSONAPI::Resources`. `FastJsonapi` and...
I can generate a `swagger.json` from our base resource with `bundle exec rails generage jsonapi:swagger Api::Base` ```ruby module Api class BaseResource < JSONAPI::Resource class
When doing attribute translation using [Globalize](https://github.com/globalize/globalize) database columns are not created in the table for the model, instead they are created in a separate translation table. This PR checks to...
Having a resource like this: ``` class Api::V1::TripResource < Api::V1::BaseResource attribute :test def test 123 end end ``` `$ rails g jsonapi:swagger Api::V1::Trip` fails with `jsonapi-swagger-0.7.1/lib/generators/jsonapi/swagger/templates/swagger.json.erb:80:in block (2 levels) in...