Skip to content

Commit 5e2842c

Browse files
committed
correct null handling for Deviation object in API
1 parent 4b4a6c4 commit 5e2842c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

sirius_rest_service/openapi-spec-enums-as-ref.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9454,7 +9454,8 @@
94549454
"type": "number",
94559455
"format": "double"
94569456
}
9457-
}
9457+
},
9458+
"nullable": true
94589459
},
94599460
"LcmsSubmissionParameters": {
94609461
"type": "object",

sirius_rest_service/openapi-spec-enums-as-string.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9882,7 +9882,8 @@
98829882
"type": "number",
98839883
"format": "double"
98849884
}
9885-
}
9885+
},
9886+
"nullable": true
98869887
},
98879888
"LcmsSubmissionParameters": {
98889889
"type": "object",

sirius_rest_service/src/main/java/de/unijena/bioinf/ms/middleware/model/compute/LcmsSubmissionParameters.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ public class LcmsSubmissionParameters {
5555
/**
5656
* Maximal allowed mass deviation for peaks in ms1 to be considered as belonging to the same trace.
5757
*/
58-
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, defaultValue = "null")
58+
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, nullable = true)
5959
@JsonSerialize(using = ToStringSerializer.class)
6060
@JsonDeserialize(using = SimpleSerializers.DeviationDeserializer.class)
6161
protected Deviation traceMaxMassDeviation = null;
6262

6363
/**
6464
* Maximal allowed mass deviation for aligning features. If not specified, this parameter is estimated from data.
6565
*/
66-
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, defaultValue = "null")
66+
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, nullable = true)
6767
@JsonSerialize(using = ToStringSerializer.class)
6868
@JsonDeserialize(using = SimpleSerializers.DeviationDeserializer.class)
6969
protected Deviation alignMaxMassDeviation = null;

0 commit comments

Comments
 (0)