Skip to content

Commit 86f04f4

Browse files
committed
[try] make schema and accept required in request schema
Fixes #602
1 parent e746aed commit 86f04f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/scripts/directives/tryoperation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ SwaggerEditor.controller('TryOperation', function ($scope, formdataFilter,
116116
var schema = {
117117
type: 'object',
118118
title: 'Request',
119+
required: ['scheme', 'accept'],
119120
properties: {
120121
scheme: {
121122
type: 'string',

test/e2e/specs/7_try_operation_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('Try Operation', function () {
4040
.toContain('http://petstore-api.herokuapp.com/pet/?limit=11');
4141
});
4242

43-
xit('changing the scheme changes the request URL', function () {
43+
it('changing the scheme changes the request URL', function () {
4444
$('.try-container select[name="root[scheme]"]').click();
4545
$('.try-container select[name="root[scheme]"] option:nth-child(2)').click();
4646

0 commit comments

Comments
 (0)