dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43822?usp=email )
Change subject: esx_header_Types_JSON: add parameters to ts/tr_responseHeader ......................................................................
esx_header_Types_JSON: add parameters to ts/tr_responseHeader
The templates for ts/tr_responseHeader currently have no parameters, Let's add parameters (and a tr/ts_statusCodeData template), so that we can use the templates to match on error responses
Change-Id: Ie65532432b24899505e0c51d6714be58cf5f594b Related: SYS#8203 --- M library/euicc/esx_header_Types_JSON.ttcn 1 file changed, 25 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/22/43822/1
diff --git a/library/euicc/esx_header_Types_JSON.ttcn b/library/euicc/esx_header_Types_JSON.ttcn index 1954341..73ea7dc 100644 --- a/library/euicc/esx_header_Types_JSON.ttcn +++ b/library/euicc/esx_header_Types_JSON.ttcn @@ -36,18 +36,37 @@ JSON_ESx_FunctionExecutionStatus functionExecutionStatus };
+template (value) JSON_ESx_FunctionExecutionStatusCodeData +ts_statusCodeData(template (value) charstring subjectCode := "1", + template (value) charstring reasonCode := "1") := { + subjectCode := subjectCode, + reasonCode := reasonCode, + subjectIdentifier := omit, + message_ := omit +} +template (present) JSON_ESx_FunctionExecutionStatusCodeData +tr_statusCodeData(template (present) charstring subjectCode := ?, + template (present) charstring reasonCode := ?) := { + subjectCode := subjectCode, + reasonCode := reasonCode, + subjectIdentifier := *, + message_ := * +} + template (value) JSON_ESx_ResponseHeader -ts_responseHeader := { +ts_responseHeader(template (value) charstring status := "Executed-Success", + template (omit) JSON_ESx_FunctionExecutionStatusCodeData statusCodeData := omit) := { functionExecutionStatus := { - status := "Executed-Success", - statusCodeData := omit + status := status, + statusCodeData := statusCodeData } } template (present) JSON_ESx_ResponseHeader -tr_responseHeader := { +tr_responseHeader(template (present) charstring status := ?, + template JSON_ESx_FunctionExecutionStatusCodeData statusCodeData := *) := { functionExecutionStatus := { - status := ?, - statusCodeData := * + status := status, + statusCodeData := statusCodeData } }