You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
### Next Release
2
2
3
+
*[#196](https://github.com/tim-vandecasteele/grape-swagger/pull/196): If `:type` is omitted, see if it's available in `:using` - [@jhollinger](https://github.com/jhollinger).
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -229,7 +229,7 @@ end
229
229
230
230
### Relationships
231
231
232
-
Put the full name of the relationship's class in `type`, leaving out any modules named `Entities` or `Entity`. So for the entity class `API::Entities::Address`, you would put `type: 'API::Address'`.
232
+
You may safely omit `type` from relationships, as it can be inferred. However, if you need to specify oroverride it, use the full name of the classleaving out any modules named `Entities`or`Entity`.
0 commit comments