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.
The route reads
request.body.targetSnapshot, but the body schema only declaresname,type,instanceandapplication. 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
targetSnapshotis declared in the body schema as a string, and the generated types include it.Reference
forge/routes/api/device.js:600-608.