Skip to content

Problem with remote-method boolean arg and strong-remoting 2.23.0 #1881

@matohawk

Description

@matohawk

loopback : 2.2.26

Here my remote Method definition :
Auction.remoteMethod('allAuctions', {
description: 'Get all Auctions',
accepts: [ {
arg: 'franchised',
type: 'boolean',
http: {
source: 'query'
},
description: 'Get only franchised Account'
}

When I pass :
api/v1.1/Auctions/All?franchised=false

I retrieve :
true for the franchised after the remote method

I downgrade the version of strong-remoting to 2.22.0 and now it's fixed.
Can you have a look?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions