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

OpenAPI documentation DSL improvements #133

Open
shirish-pampoorickal opened this issue Nov 19, 2019 · 3 comments
Open

OpenAPI documentation DSL improvements #133

shirish-pampoorickal opened this issue Nov 19, 2019 · 3 comments
Assignees

Comments

@shirish-pampoorickal
Copy link
Member

shirish-pampoorickal commented Nov 19, 2019

Please add any concerns, enhancements, bugs with the DSL for API documentation

@guanw88
Copy link
Contributor

guanw88 commented Nov 19, 2019

Enhancement Requests:

  1. Allow the ability to customize text on a path parameter.

We can customize query params as follows, but there is no way to customize a path param.

valid :varname, :integer,
              required: true,
              info: "foo bar"
  1. Allow the ability to add/customize different response codes.

We can add a response as below, but there is no way to specify the error code and the associated text.

response :hash do |response_fields|
              response_fields.field :title, :string, info: "title of the object"

              response_fields.fields :categories, :array, item_type: :hash do |category|
                category.field :name, :string, info: "the name of the assoccategory"
              end

              response_fields.fields :parent, :hash do |parent|
                parent.field :title, :string, info: "title of the parent"
              end
            end

@shirish-pampoorickal shirish-pampoorickal changed the title OpenAPI doc generation improvements OpenAPI documentation DSL improvements Nov 19, 2019
@shirish-pampoorickal
Copy link
Member Author

shirish-pampoorickal commented Nov 26, 2019

Enhancement: Only document presenters that are referenced in a documented controller

@kcotugno
Copy link

Currently search documentation cannot be customized. It would be great if we can!

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

No branches or pull requests

3 participants