Skip to content

LinearCmd Client Device method should throw if pos is outside [0, 1] #248

@mnh86

Description

@mnh86

Describe the bug

  • Using buttplug-js v3.1.1 with Intiface Central v2.3.0 and a device configuration with a Linear axis.
  • Seeing following error in Intiface Central logs upon sending a LinearCmd via await device.linear(pos);
  • No errors reported on the buttplug-js client side when sending.
[E] Global Loggy: Got invalid messages from remote Buttplug connection
- Message: Text("[{\"LinearCmd\":{\"Id\":312,\"DeviceIndex\":0,\"Vectors\":[{\"Index\":0,\"Position\":28}]}}]")
- Error: JsonSerializerError("Error during JSON Schema Validation
- Message: [{\"LinearCmd\":{\"DeviceIndex\":0,\"Id\":312,\"Vectors\":[{\"Index\":0,\"Position\":28}]}}]
- Error: [ValidationError { instance: Array [Object {\"LinearCmd\": Object {\"DeviceIndex\": Number(0), \"Id\": Number(312), \"Vectors\": Array [Object {\"Index\": Number(0), \"Position\": Number(28)}]}}], kind: AnyOf, instance_path: JSONPointer([]), schema_path: JSONPointer([Keyword(\"anyOf\")]) }]")

Should this be reported within the https://github.com/intiface/intiface-central project instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions