Skip to content

targetSnapshot is missing from the PUT /api/v1/devices/:deviceId body schema #8814

Description

@andypalmi

The route reads request.body.targetSnapshot, but the body schema only declares name, type, instance and application. The field works only because additional properties are not stripped, it is missing from the OpenAPI docs and the generated types, and nothing validates its type.

Expected

targetSnapshot is declared in the body schema as a string, and the generated types include it.

Reference

forge/routes/api/device.js:600-608.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:apiWork on the platform APItype:bugSomething isn't working

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions