Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Support "additionalProperties" on Object types

Đang mở
#690 3 bình luận 2 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
ruby
Lĩnh vực
api, documentation

Hướng nghiên cứu

No file or test is named. Start by locating the gem's object-schema handling and compare its OAS2 behavior with the linked Swagger data-model guidance; determine how arbitrary keys and values should be represented. Done means the labels example can be documented as a freeform object.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

discuss! question

I'm not sure if OAS2 has this, I'd guess it does, but right now I'm looking for a way to support "freeform" objects being passed in.

For example, I have the option to pass in labels for my API:

# request payload
{ "labels": { "this":"is freeform", "no":"structure"}}

The labels key can have any type of keys/values passed into it. I'm looking for a way to document this using this gem. You can see this documented on Swagger here: https://swagger.io/docs/specification/data-models/data-types/#object (granted this is OAS3)

Ngôn ngữ chính
Ruby
Star
1.1k
Fork
477
Merge trung bình
5 giờ 25 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ruby-grape/grape-swagger

Tất cả issue của ruby-grape/grape-swagger

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.