Skip to content

Commit 6db273b

Browse files
committed
Update test for grape-swagger-entity 0.7.1 allOf wrapper
grape-swagger-entity 0.7.1 now wraps $ref in allOf when description is present, which is the correct OpenAPI format. See: ruby-grape/grape-swagger-entity#90
1 parent 6cc8961 commit 6db273b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/swagger_v2/reference_entity_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def app
101101
'properties' => {
102102
'title' => { 'type' => 'string', 'description' => 'Title of the kind.' },
103103
'something' => {
104-
'$ref' => '#/definitions/SomethingCustom',
104+
'allOf' => [{ '$ref' => '#/definitions/SomethingCustom' }],
105105
'description' => 'Something interesting.'
106106
}
107107
},

0 commit comments

Comments
 (0)