Document Context¶
The following documentation is generated from Document Context Schema
describing Document Context that is passed to document templates when generating a document using Jinja2.
Document Context¶
The JSON representation of document context object provided to document templates in DSW. |
UUID¶
UUID version 4 according to RFC4122 |
|
type |
string |
pattern |
^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$ |
Optional String¶
anyOf |
type |
string |
type |
null |
String Map¶
Representation of simple map where both keys and values are strings |
||
type |
object |
|
patternProperties |
||
|
type |
string |
Value Type¶
type |
string |
enum |
StringQuestionValueType, NumberQuestionValueType, DateQuestionValueType, TextQuestionValueType |
Desirability Level¶
Level to indicate if a question is desirable in certain phase of a questionnaire |
||
anyOf |
type |
integer |
type |
null |
SemVer¶
Simple semantic version tag, e.g., |
|
type |
string |
pattern |
^[0-9]+\.[0-9]+\.[0-9]+$ |
Knowledge Model ID¶
ID of knowledge model |
|
type |
string |
pattern |
^[a-zA-Z0-9\-]+$ |
Organization ID¶
ID of organization |
|
type |
string |
pattern |
^[a-zA-Z0-9\.]+$ |
Package ID¶
Unique composed ID for a package |
|
type |
string |
pattern |
^[a-zA-Z0-9\.]+:^[a-zA-Z0-9\-]+:^[0-9]+\.[0-9]+\.[0-9]+$ |
Timestamp¶
Standard ISO timestamp format, e.g., |
|
type |
string |
pattern |
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]+)?Z$ |
Metric Measure¶
Entity capturing how certain metric is affected |
||
type |
object |
|
properties |
||
|
||
|
type |
number |
maximum |
1.0 |
|
minimum |
0.0 |
|
|
type |
number |
maximum |
1.0 |
|
minimum |
0.0 |
|
additionalProperties |
False |
Config¶
Configuration values useful for generating documents |
||
type |
object |
|
properties |
||
|
type |
string |
format |
uri |
|
|
type |
boolean |
additionalProperties |
False |
Desirability Level (object)¶
type |
object |
|
properties |
||
|
type |
string |
format |
date-time |
|
|
type |
string |
|
type |
integer |
|
type |
string |
|
type |
string |
format |
date-time |
|
additionalProperties |
False |
Metric¶
type |
object |
|
properties |
||
|
type |
string |
|
type |
string |
format |
date-time |
|
|
type |
string |
|
type |
array |
|
type |
string |
|
type |
string |
format |
date-time |
|
|
||
additionalProperties |
False |
Organization¶
type |
object |
||
properties |
|||
|
type |
array |
|
items |
type |
string |
|
|
type |
string |
|
|
type |
string |
|
|
|||
additionalProperties |
False |
Package Metadata¶
type |
object |
||
properties |
|||
|
type |
string |
|
format |
date-time |
||
|
type |
string |
|
|
|||
|
|||
|
type |
string |
|
|
anyOf |
||
type |
null |
||
|
|||
|
type |
string |
|
|
|||
|
type |
array |
|
items |
|||
additionalProperties |
False |
Indication Report¶
type |
object |
|
properties |
||
|
type |
integer |
|
type |
string |
enum |
LevelsAnsweredIndication, AnsweredIndication |
|
|
type |
integer |
additionalProperties |
False |
Metric Report¶
type |
object |
|
properties |
||
|
type |
number |
maximum |
1 |
|
minimum |
0 |
|
|
||
additionalProperties |
False |
Chapter Report¶
type |
object |
|
properties |
||
|
||
|
type |
array |
items |
||
|
type |
array |
items |
||
additionalProperties |
False |
Total (Summary) Report¶
type |
object |
|
properties |
||
|
type |
array |
items |
||
|
type |
array |
items |
||
additionalProperties |
False |
Report¶
type |
object |
|
properties |
||
|
type |
array |
items |
||
|
type |
string |
format |
date-time |
|
|
||
|
type |
string |
format |
date-time |
|
|
||
additionalProperties |
False |
User¶
Information about a user |
|||
type |
object |
||
properties |
|||
|
type |
boolean |
|
|
type |
string |
|
|
type |
string |
|
format |
date-time |
||
|
type |
string |
|
format |
|||
|
type |
string |
|
|
type |
array |
|
|
type |
string |
|
format |
uri |
||
|
type |
string |
|
|
type |
array |
|
items |
type |
string |
|
|
type |
string |
|
enum |
researcher, data_steward, admin |
||
|
type |
array |
|
items |
type |
string |
|
|
type |
string |
|
format |
date-time |
||
|
|||
additionalProperties |
False |
Knowledge Model¶
type |
object |
||
properties |
|||
|
type |
array |
|
items |
|||
|
Typed UUID-entity map of KM contents |
||
type |
object |
||
properties |
|||
|
type |
object |
|
patternProperties |
|||
|
|||
|
type |
object |
|
patternProperties |
|||
|
|||
|
type |
object |
|
patternProperties |
|||
|
|||
|
type |
object |
|
patternProperties |
|||
|
|||
|
type |
object |
|
patternProperties |
|||
|
|||
|
type |
object |
|
patternProperties |
|||
|
|||
|
type |
object |
|
patternProperties |
|||
|
|||
additionalProperties |
False |
||
|
type |
array |
|
items |
|||
|
type |
string |
|
|
type |
array |
|
items |
|||
|
|||
additionalProperties |
False |
Answer¶
type |
object |
|
properties |
||
|
||
|
type |
array |
items |
||
|
type |
string |
|
type |
array |
items |
||
|
||
additionalProperties |
False |
Chapter¶
type |
object |
|
properties |
||
|
type |
array |
items |
||
|
type |
string |
|
type |
string |
|
||
additionalProperties |
False |
Expert¶
type |
object |
|
properties |
||
|
type |
string |
|
type |
string |
format |
||
|
||
additionalProperties |
False |
Integration¶
type |
object |
||
properties |
|||
|
type |
string |
|
|
type |
string |
|
|
type |
string |
|
|
type |
string |
|
|
type |
array |
|
items |
type |
string |
|
|
type |
string |
|
|
|||
|
type |
string |
|
|
type |
string |
|
|
type |
string |
|
|
type |
string |
|
|
|||
additionalProperties |
False |
Value Question¶
type |
object |
||
properties |
|||
|
type |
array |
|
items |
|||
|
type |
string |
|
enum |
ValueQuestion |
||
|
type |
array |
|
items |
|||
|
anyOf |
type |
integer |
type |
null |
||
|
type |
array |
|
items |
|||
|
|||
|
type |
string |
|
|
|||
|
type |
string |
|
enum |
DateQuestionValueType, NumberQuestionValueType, StringQuestionValueType, TextQuestionValueType |
||
additionalProperties |
False |
Integration Question¶
type |
object |
||
properties |
|||
|
type |
array |
|
items |
|||
|
|||
|
|||
|
type |
string |
|
enum |
IntegrationQuestion |
||
|
type |
array |
|
items |
|||
|
anyOf |
type |
integer |
type |
null |
||
|
type |
array |
|
items |
|||
|
|||
|
type |
string |
|
|
|||
additionalProperties |
False |
List Question¶
type |
object |
||
properties |
|||
|
type |
array |
|
items |
|||
|
type |
array |
|
items |
|||
|
type |
string |
|
enum |
ListQuestion |
||
|
type |
array |
|
items |
|||
|
anyOf |
type |
integer |
type |
null |
||
|
type |
array |
|
items |
|||
|
|||
|
type |
string |
|
|
|||
additionalProperties |
False |
Options Question¶
type |
object |
||
properties |
|||
|
type |
array |
|
items |
|||
|
type |
array |
|
items |
|||
|
type |
string |
|
enum |
OptionsQuestion |
||
|
type |
array |
|
items |
|||
|
anyOf |
type |
integer |
type |
null |
||
|
type |
array |
|
items |
|||
|
|||
|
type |
string |
|
|
|||
additionalProperties |
False |
Question¶
anyOf |
|
Resource Page Reference¶
type |
object |
|
properties |
||
|
type |
string |
enum |
ResourcePageReference |
|
|
type |
string |
|
||
additionalProperties |
False |
URL Reference¶
type |
object |
|
properties |
||
|
type |
string |
|
type |
string |
enum |
URLReference |
|
|
type |
string |
format |
uri |
|
|
||
additionalProperties |
False |
Cross Reference¶
type |
object |
|
properties |
||
|
type |
string |
|
type |
string |
enum |
CrossReference |
|
|
||
|
||
additionalProperties |
False |
Reference¶
anyOf |
|
Tag¶
type |
object |
|
properties |
||
|
type |
string |
|
type |
string |
|
type |
string |
|
||
additionalProperties |
False |
Answer Reply¶
type |
object |
|
properties |
||
|
type |
string |
enum |
AnswerReply |
|
|
||
additionalProperties |
False |
Value Reply¶
type |
object |
|
properties |
||
|
type |
string |
enum |
StringReply |
|
|
type |
string |
additionalProperties |
False |
Integration Plain Value¶
type |
object |
|
properties |
||
|
type |
string |
enum |
PlainValue |
|
|
type |
string |
additionalProperties |
False |
Integration Value¶
type |
object |
|
properties |
||
|
type |
string |
enum |
IntegrationValue |
|
|
type |
string |
|
type |
string |
additionalProperties |
False |
Integration Reply¶
type |
object |
|
properties |
||
|
type |
string |
enum |
IntegrationReply |
|
|
anyOf |
|
additionalProperties |
False |
List Reply¶
type |
object |
|
properties |
||
|
type |
string |
enum |
ItemListReply |
|
|
type |
array |
items |
||
additionalProperties |
False |
Reply¶
anyOf |
|
Document Context (object)¶
Entity capturing how certain metric is affected |
||
type |
object |
|
properties |
||
|
||
|
When the document was created |
|
type |
string |
|
format |
date-time |
|
|
Issuer/author of the document |
|
|
Compiled KM used in the questionnaire |
|
|
The current desirability level in the questionnaire |
|
type |
integer |
|
|
Levels defined for the questionnaire |
|
type |
array |
|
items |
||
|
Metrics defined for the questionnaire |
|
type |
array |
|
items |
||
|
Organization configured for the DSW instance |
|
|
Metadata about the used KM package |
|
|
Name of the questionnaire |
|
type |
string |
|
minLength |
1 |
|
|
Replies in the questionnaire stored in map/dictionary where key is UUID path and value is the reply to question in that path |
|
type |
object |
|
patternProperties |
||
|
||
|
UUID of the questionnaire |
|
|
Report computed for the questionnaire |
|
|
When the document was last updated |
|
type |
string |
|
format |
date-time |
|
|
UUID of the document |
|
additionalProperties |
False |