We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cd6c40 commit adae103Copy full SHA for adae103
interfaces/sensorthings/schemas/sensor.py
@@ -20,13 +20,19 @@ class SensorModel(Schema):
20
)
21
22
23
-sensorEncodingTypes = Literal[
+KnownSensorEncodingTypes = Literal[
24
"application/pdf",
25
"http://www.opengis.net/doc/IS/SensorML/2.0",
26
"text/html",
27
"application/json",
28
+ "text/plain",
29
]
30
31
+# Legacy deployments may contain other valid MIME strings in this field.
32
+# Keep known values documented while accepting arbitrary encodings to avoid
33
+# response-validation 500s when reading existing records.
34
+sensorEncodingTypes = KnownSensorEncodingTypes | str
35
+
36
37
class SensorMetadata(Schema):
38
method_code: Optional[str] = None
0 commit comments