diff --git a/formats/platform_status.py b/formats/platform_status.py index 2ef5560ceb8763e5fcd0638d2a7a545a7b3778ad..56cfd1c2c878736a6ec145decd68706241ec9a81 100644 --- a/formats/platform_status.py +++ b/formats/platform_status.py @@ -86,8 +86,8 @@ platform_status_schema = { "type": "number", "format": "float", "description": "Target depth in metres", - "example": 50, - "default": 0, + "example": 50.0, + "default": 0.0, }, "altitude": { "type": "number", diff --git a/tests/fixtures/schemas.py b/tests/fixtures/schemas.py index 64f16123c8283958df3e65b6788facbca6aa822b..2c94dd823076a98dac804a9746498b6110a96dad 100644 --- a/tests/fixtures/schemas.py +++ b/tests/fixtures/schemas.py @@ -493,8 +493,8 @@ platform_status_schema = { "type": "number", "format": "float", "description": "Target depth in metres", - "example": 50, - "default": 0, + "example": 50.0, + "default": 0.0, }, "altitude": { "type": "number", diff --git a/tests/fixtures/swagger.json b/tests/fixtures/swagger.json index a864c5c714bb3af00b27f60940f87061367aa2d2..880bec80dbf1213ce854f90632cd0357436793bd 100644 --- a/tests/fixtures/swagger.json +++ b/tests/fixtures/swagger.json @@ -517,9 +517,9 @@ "type": "number" }, "depth": { - "default": 0, + "default": 0.0, "description": "Target depth in metres", - "example": 50, + "example": 50.0, "format": "float", "type": "number" },