Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TTCN-3 Libraries
LibIts
Commits
5732daf6
Commit
5732daf6
authored
May 07, 2019
by
Yann Garcia
Browse files
Add JSON support for STF569_MEC
parent
1451dd87
Changes
3
Hide whitespace changes
Inline
Side-by-side
ttcn/Http/LibItsHttp_JSONTypes.ttcn
0 → 100644
View file @
5732daf6
module
LibItsHttp_JSONTypes
{
// FIXME To be removed
/**
* This file is volontary empry. You have to declare all XSD files required by your project
* In addition, the TTCN-3 module LibItsHttp_XmlMessageBodyTypes have to be updated too.
*/
// TODO Add here your custom RFCs import
}
// End of module LibItsHttp_JSONTypes
ttcn/Http/LibItsHttp_JsonMessageBodyTypes.ttcn
0 → 100644
View file @
5732daf6
module
LibItsHttp_JsonMessageBodyTypes
{
/**
* This file volontary contains a trivial declaration of the type JsonBody.
* In accordance with your TTCN-3 module LibItsHttp_JSONTypes, you have to change the JsonBody typing.
*/
// TODO Add here your custom RFCs import
type
union
JsonBody
{
// TODO Add here your custom variants
universal
charstring
raw
}
with
{
variant
""
}
}
with
{
variant
""
}
// End of module LibItsHttp_JsonMessageBodyTypes
ttcn/Http/LibItsHttp_JsonTemplates.ttcn
0 → 100644
View file @
5732daf6
/**
* @author ETSI / STF569
* @version $URL$
* $ID:$
* @desc This module provides the custom templates for ITS HTTP based protocols.
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*/
module
LibItsHttp_JsonTemplates
{
// TODO Add here your custom RFCs import
// LibItsHttp
import
from
LibItsHttp_JsonMessageBodyTypes
all
;
import
from
LibItsHttp_XMLTypes
all
;
template
(
value
)
JsonBody
m_json_body_raw
(
in
template
(
value
)
charstring
p_raw
)
:=
{
raw
:=
p_raw
}
// End of template m_json_body_raw
template
(
present
)
JsonBody
mw_json_body_raw
(
template
(
present
)
charstring
p_raw
:=
?
)
:=
{
raw
:=
p_raw
}
// End of template mw_json_body_raw
}
// End of module LibItsHttp_JsonTemplates
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment