Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Create a ComputerMonitor using 'Add a device' form #61

@jnadeu

Description

@jnadeu

Using the form to manually create a Device, more specifically the type ComputerMonitor, even if you fill in all the required fields of the form, you get an error when creating the device. Since for the type ComputerMonitor it is required to have the following fields as well: resolutionHeight, resolutionWidth, size.

Response error output when POST:

_{"code":422,"message":{"device":

{"resolutionHeight":["Missing data for required field."],

"resolutionWidth":["Missing data for required field."],

"size":["Missing data for required field."]}},

"type":"ValidationError"}_

Possible solution:
Add three new fields (resolutionHeight, resolutionWidth, size) in the form when selecting the type of device equal to ComputerMonitor.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions