diff --git a/formats/__init__.py b/formats/__init__.py index e7e9b0006c0178a09b011dff9ec343b9b1e6a637..96c6be008d8b1895aed1f89f92272359f4a0dcd1 100644 --- a/formats/__init__.py +++ b/formats/__init__.py @@ -44,7 +44,7 @@ message_header = { "encoded": { "type": "boolean", "description": "Indicate that message raw (encoded) or decoded. " - + "Options: encoded=True, decoded=False", + + "Options: encoded=true, decoded=false", "example": False, }, "delivery_type": { diff --git a/formats/encoded.py b/formats/encoded.py index 8d6d700686a0db7797b070a28a73f46cd04a91c7..e6bb57418526233593878c6788ff7b8982baf70d 100644 --- a/formats/encoded.py +++ b/formats/encoded.py @@ -32,8 +32,8 @@ encoded_schema = { "is_binary": { "type": "boolean", "description": ( - "True if the data field contains binary format data encoded as base64." - + " False if the data field contains ascii content such as NMEA." + "true if the data field contains binary format data encoded as base64." + + " false if the data field contains ascii content such as NMEA." ), "example": True, }, diff --git a/formats/mission_plan.py b/formats/mission_plan.py index 6e430e0a1d85f8ac98f905c470ad9b9f186bb469..6aa69d95a362e16816982ed96a49c0cb41ec95eb 100644 --- a/formats/mission_plan.py +++ b/formats/mission_plan.py @@ -91,7 +91,7 @@ mission_plan_schema = { "emergency": { "type": "boolean", "description": "To indicate if this is an emergency. " - + "True = emergency and False = no emergency", + + "true = emergency and false = no emergency", "default": False, "example": False, }, diff --git a/formats/platform_status.py b/formats/platform_status.py index f0e0cb6a0ca1558bb4e16a9bdf5c72f6e7ad7189..ff31eac345ad92694a9c3480bd9f6ca1f9a36022 100644 --- a/formats/platform_status.py +++ b/formats/platform_status.py @@ -14,7 +14,7 @@ sensor_schema = { }, "sensor_on": { "type": "boolean", - "description": "Sensor switched on (True) or off (False)", + "description": "Sensor switched on (true) or off (false)", "example": True, }, "additional_data": { diff --git a/project/soar/swagger.json b/project/soar/swagger.json index bfdc3a4be62784b5de1ecaee71d49201a4f2b7ff..bdbda617a744ee60a429f6dbe11e65dc37a5df1f 100644 --- a/project/soar/swagger.json +++ b/project/soar/swagger.json @@ -71,7 +71,7 @@ "type":"string" }, "encoded":{ - "description":"Indicate that message raw (encoded) or decoded. Options: encoded=True, decoded=False", + "description":"Indicate that message raw (encoded) or decoded. Options: encoded=true, decoded=false", "example":false, "type":"boolean" }, @@ -117,7 +117,7 @@ }, "emergency": { "default": false, - "description": "To indicate if this is an emergency. True = emergency and False = no emergency", + "description": "To indicate if this is an emergency. true = emergency and false = no emergency", "example": false, "type": "boolean" }, @@ -212,7 +212,7 @@ "type":"string" }, "is_binary":{ - "description":"True if the data field contains binary format data encoded as base64. False if the data field contains ascii content such as NMEA.", + "description":"true if the data field contains binary format data encoded as base64. false if the data field contains ascii content such as NMEA.", "example":true, "type":"boolean" }, @@ -313,7 +313,7 @@ "type":"string" }, "is_binary":{ - "description":"True if the data field contains binary format data encoded as base64. False if the data field contains ascii content such as NMEA.", + "description":"true if the data field contains binary format data encoded as base64. false if the data field contains ascii content such as NMEA.", "example":true, "type":"boolean" }, @@ -716,7 +716,7 @@ "type":"object" }, "sensor_on":{ - "description":"Sensor switched on (True) or off (False)", + "description":"Sensor switched on (true) or off (false)", "example":true, "type":"boolean" }, @@ -795,7 +795,7 @@ "type":"string" }, "is_binary":{ - "description":"True if the data field contains binary format data encoded as base64. False if the data field contains ascii content such as NMEA.", + "description":"true if the data field contains binary format data encoded as base64. false if the data field contains ascii content such as NMEA.", "example":true, "type":"boolean" }, diff --git a/tests/fixtures/schemas.py b/tests/fixtures/schemas.py index 0a828c07741b37bd7c582b5ae51b4378967c817d..9cbc2151a6aaa8b263ecf883e14de1210918fa62 100644 --- a/tests/fixtures/schemas.py +++ b/tests/fixtures/schemas.py @@ -35,7 +35,7 @@ message_header = { "encoded": { "type": "boolean", "description": "Indicate that message raw (encoded) or decoded. " - + "Options: encoded=True, decoded=False", + + "Options: encoded=true, decoded=false", "example": False, }, "delivery_type": { @@ -168,7 +168,7 @@ mission_plan_schema = { "emergency": { "default": False, "description": "To indicate if this is an emergency. " - + "True = emergency and False = no emergency", + + "true = emergency and false = no emergency", "example": False, "type": "boolean", }, @@ -437,7 +437,7 @@ sensor_schema = { }, "sensor_on": { "type": "boolean", - "description": "Sensor switched on (True) or off (False)", + "description": "Sensor switched on (true) or off (false)", "example": True, }, "additional_data": { diff --git a/tests/fixtures/swagger.json b/tests/fixtures/swagger.json index 3b5677cd5bf125287fb734e14227a11848201179..eca6c9bfd728535d7a6509c597f4e532efcc6460 100644 --- a/tests/fixtures/swagger.json +++ b/tests/fixtures/swagger.json @@ -69,7 +69,7 @@ "type": "string" }, "encoded": { - "description": "Indicate that message raw (encoded) or decoded. Options: encoded=True, decoded=False", + "description": "Indicate that message raw (encoded) or decoded. Options: encoded=true, decoded=false", "example": false, "type": "boolean" }, @@ -112,7 +112,7 @@ }, "emergency": { "default": false, - "description": "To indicate if this is an emergency. True = emergency and False = no emergency", + "description": "To indicate if this is an emergency. true = emergency and false = no emergency", "example": false, "type": "boolean" }, @@ -592,7 +592,7 @@ } }, "sensor_on": { - "description": "Sensor switched on (True) or off (False)", + "description": "Sensor switched on (true) or off (false)", "example": true, "type": "boolean" },