• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape-swagger / 1716
100%

Build:
DEFAULT BRANCH: master
Ran 05 Sep 2019 01:16PM UTC
Jobs 16
Files 22
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1716

push

travis-ci

LeFnord
Fix reference creation when two types are provided (#756)

Previously the type from param definition would be used to documentation
even if we try to override it in the `documentation` hash.
It caused Swagger UI to render, for example, "Unknown Type: Color"
instead of using the provided entity.

It terms of code, before this change we would return something like this:
{ color: { type: 'Color' }
instead of:
{ color: { '$ref' => 'ColorEntity' }
if Color is not inherited from Grape::Entity

Having different types can be useful when two different classes
are used for parsing and presenting an attribute.
E.g. the input format for Base64 File can be represented as a Hash (content,
content_type and filename), whereas the type after parsing can be
ActionDispatch::Http::UploadedFile.

In the current situation the solution to this problem is to put coercion
methods to the same entity and specify `type` only for the param without
using `documentation`.

3 of 3 new or added lines in 1 file covered. (100.0%)

890 of 896 relevant lines covered (99.33%)

4594.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1716.1 (2.4.6, MODEL_PARSER=grape-swagger-entity) 05 Sep 2019 01:16PM UTC 0
98.14
Travis Job 1716.1
2 1716.2 (2.5.5, MODEL_PARSER=grape-swagger-entity) 05 Sep 2019 01:16PM UTC 0
98.14
Travis Job 1716.2
3 1716.3 (2.6.3, MODEL_PARSER=grape-swagger-entity) 05 Sep 2019 01:16PM UTC 0
98.03
Travis Job 1716.3
4 1716.4 (2.4.6, MODEL_PARSER=grape-swagger-representable) 05 Sep 2019 01:16PM UTC 0
98.14
Travis Job 1716.4
5 1716.5 (2.5.5, MODEL_PARSER=grape-swagger-representable) 05 Sep 2019 01:16PM UTC 0
98.14
Travis Job 1716.5
6 1716.6 (2.6.3, MODEL_PARSER=grape-swagger-representable) 05 Sep 2019 01:17PM UTC 0
98.03
Travis Job 1716.6
7 1716.7 (2.4.6, GRAPE_VERSION=1.0.3) 05 Sep 2019 01:17PM UTC 0
99.12
Travis Job 1716.7
8 1716.8 (2.5.5, GRAPE_VERSION=1.0.3) 05 Sep 2019 01:17PM UTC 0
99.12
Travis Job 1716.8
9 1716.9 (2.6.3, GRAPE_VERSION=1.0.3) 05 Sep 2019 01:17PM UTC 0
99.02
Travis Job 1716.9
10 1716.10 (2.4.6, GRAPE_VERSION=1.2.4) 05 Sep 2019 01:17PM UTC 0
99.12
Travis Job 1716.10
11 1716.11 (2.5.5, GRAPE_VERSION=1.2.4) 05 Sep 2019 01:19PM UTC 0
99.12
Travis Job 1716.11
12 1716.12 (2.6.3, GRAPE_VERSION=1.2.4) 05 Sep 2019 01:18PM UTC 0
99.02
Travis Job 1716.12
13 1716.13 (2.4.6, GRAPE_VERSION=HEAD) 05 Sep 2019 01:19PM UTC 0
99.12
Travis Job 1716.13
14 1716.14 (2.5.5, GRAPE_VERSION=HEAD) 05 Sep 2019 01:19PM UTC 0
99.12
Travis Job 1716.14
15 1716.15 (2.6.3, GRAPE_VERSION=HEAD) 05 Sep 2019 01:19PM UTC 0
99.02
Travis Job 1716.15
17 1716.17 (ruby-head) 05 Sep 2019 01:20PM UTC 0
57.77
Travis Job 1716.17
Source Files on build 1716
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1716
  • 204ced46 on github
  • Prev Build on master (#1378)
  • Next Build on master (#1718)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc