opengeospatial / ets-ogcapi-processes10

Other
3 stars 3 forks source link

Confusing _More than 1 schema is valid_ errors #54

Closed jerstlouis closed 11 months ago

jerstlouis commented 1 year ago

Describe the bug The ETS reports the following error:

java.lang.AssertionError: body: More than 1 schema is valid. (code: 1023)
From: body.<oneOf> expected [true] but found [false]

on tests Job Creation Input Ref and test Job Creation Input Validation.

To Reproduce Run latest te2 against https://maps.gnosis.earth/ogcapi

Expected behavior No error or more comprehensible error report.

Additional Context

This seems to originate from this execution request:

{
    "id": "echo",
    "inputs": {
        "stringInput": "teststring",
        "measureInput": { "value": "teststring" },
        "dateInput": "teststring",
        "imagesInput": "teststring"
    },
    "outputs": {
        "stringOutput": { "transmissionMode": "value" },
        "measureOutput": { "transmissionMode": "value" },
        "dateOutput": { "transmissionMode": "value" },
        "doubleOutput": { "transmissionMode": "value" },
        "arrayOutput": { "transmissionMode": "value" },
        "complexObjectOutput": { "transmissionMode": "value" },
        "boundingBoxOutput": { "transmissionMode": "value" },
        "imagesOutput": { "transmissionMode": "value" }
    }
}

when returning for this a single string value:

"teststring"

In this case it was because only "stringOutput" was being set, and the ETS expected multiple outputs while only one was being returned.

dstenger commented 1 year ago

Decision during meeting 2023-08-18: