Correct type for `locked` (#16997)

This commit is contained in:
M.K. Safi 2022-06-06 00:23:40 -07:00 committed by GitHub
parent 0a2eb7e2f4
commit 213bcde080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -357,14 +357,14 @@ describe 'posts' do
parameter name: :post_body, in: :body, schema: {
type: :object,
properties: {
locked: { type: :boolean }
locked: { type: :string }
}, required: [ 'locked' ]
}
produces 'application/json'
response '200', 'post updated' do
schema type: :object, properties: {
locked: { type: :boolean },
locked: { type: :string },
}
let(:post_body) { { 'locked': 'true' } }