Working towards the next version of the SWIM Supporting Material
Working towards the next version of the SWIM Supporting Material
Requirement
Guidance
No guidance provided.
Guidance for JSON service description
tentative JSON Guidance
Guidance for JSON service descriptions integrated within the SWIM Service Description Handbook.
JSON Schema
The guidance concerns JSON Schema v0.0.3 (see Schema releases).
JSON Guidance
Two cases must be distinguished depending on whether code example is being provided or not.
Case 1 - Code example is provided
Within "serviceDocument" field (itself within "serviceDescriptionReferences" field) create one or more instances of Document with type CODE_EXAMPLE.
See Guidance on serviceDocument on how to fill in documents.
message example
Use document type CODE_EXAMPLE even for message examples. Usage of document type "MESSAGE_EXAMPLE is deprecated.
Case 2 - No example is provided
Nothing to mention in the JSON service description
JSON example
"serviceDocument": [ { "documentType": "CODE_EXAMPLE" "title": "Example of messages", "version": "1.0", "description": "A set of message examples", "reference": "public:/2019-09/MessageExamples.txt", }, ... ]
A complete JSON example is available in page JSON example - Donlon TOBT Setting service description.