Correct type for `locked` (#16997)
This commit is contained in:
parent
0a2eb7e2f4
commit
213bcde080
|
@ -357,14 +357,14 @@ describe 'posts' do
|
||||||
parameter name: :post_body, in: :body, schema: {
|
parameter name: :post_body, in: :body, schema: {
|
||||||
type: :object,
|
type: :object,
|
||||||
properties: {
|
properties: {
|
||||||
locked: { type: :boolean }
|
locked: { type: :string }
|
||||||
}, required: [ 'locked' ]
|
}, required: [ 'locked' ]
|
||||||
}
|
}
|
||||||
|
|
||||||
produces 'application/json'
|
produces 'application/json'
|
||||||
response '200', 'post updated' do
|
response '200', 'post updated' do
|
||||||
schema type: :object, properties: {
|
schema type: :object, properties: {
|
||||||
locked: { type: :boolean },
|
locked: { type: :string },
|
||||||
}
|
}
|
||||||
|
|
||||||
let(:post_body) { { 'locked': 'true' } }
|
let(:post_body) { { 'locked': 'true' } }
|
||||||
|
|
Loading…
Reference in New Issue