Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
feat(http integration): allow additional props in body
Browse files Browse the repository at this point in the history
For parity with ttn we allow additional props
  • Loading branch information
ff6347 committed Mar 29, 2022
1 parent 73b9062 commit 9487983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrations/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const mountPoint = config.get<string>("mountPoint");
const postHTTPBodySchema = S.object()
.id("/integration/http")
.title("Validation for data coming in via HTTP")
.additionalProperties(false)
.additionalProperties(true)
.prop("latitude", S.number().minimum(-90).maximum(90))
.prop("longitude", S.number().minimum(-180).maximum(180))
.prop("altitude", S.number().minimum(0).maximum(10000))
Expand Down

0 comments on commit 9487983

Please sign in to comment.