Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9adf69db authored by Vincent Hofman's avatar Vincent Hofman
Browse files

Made the traceparent optional in README and Validation profiles

parent 30d6e9e7
No related branches found
No related tags found
No related merge requests found
...@@ -89,13 +89,13 @@ ...@@ -89,13 +89,13 @@
},{ },{
"selector": "request.headers('traceparent').values", "selector": "request.headers('traceparent').values",
"id": "traceparent_parameter_presence", "id": "traceparent_parameter_presence",
"description": "The traceparent parameter is mandatory in the HTTP header.", "description": "The traceparent parameter can be used only once.",
"requirementPriority": "MANDATORY", "requirementPriority": "MANDATORY",
"checksComposition": "oneOf", "checksComposition": "oneOf",
"checks": [ "checks": [
{ {
"type": "OCCURRENCE", "type": "OCCURRENCE",
"minOccurrence": 1, "minOccurrence": 0,
"maxOccurrence": 1 "maxOccurrence": 1
} }
] ]
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
"description": "traceparent parameter's value SHALL be as defined in fhir.ch, section tracecontext.", "description": "traceparent parameter's value SHALL be as defined in fhir.ch, section tracecontext.",
"requirementPriority": "MANDATORY", "requirementPriority": "MANDATORY",
"checksComposition": "oneOf", "checksComposition": "oneOf",
"applyIf": "request.headers('traceparent').values.size() > 0",
"checks": [ "checks": [
{ {
"type": "REGEX", "type": "REGEX",
......
...@@ -90,13 +90,13 @@ ...@@ -90,13 +90,13 @@
{ {
"selector": "request.headers('traceparent').values", "selector": "request.headers('traceparent').values",
"id": "traceparent_parameter_presence", "id": "traceparent_parameter_presence",
"description": "The traceparent parameter is mandatory in the HTTP header.", "description": "The traceparent parameter can be used only once.",
"requirementPriority": "MANDATORY", "requirementPriority": "MANDATORY",
"checksComposition": "oneOf", "checksComposition": "oneOf",
"checks": [ "checks": [
{ {
"type": "OCCURRENCE", "type": "OCCURRENCE",
"minOccurrence": 1, "minOccurrence": 0,
"maxOccurrence": 1 "maxOccurrence": 1
} }
] ]
...@@ -106,7 +106,8 @@ ...@@ -106,7 +106,8 @@
"id": "traceparent_parameter_value", "id": "traceparent_parameter_value",
"description": "traceparent parameter's value SHALL be as defined in fhir.ch, section tracecontext.", "description": "traceparent parameter's value SHALL be as defined in fhir.ch, section tracecontext.",
"requirementPriority": "MANDATORY", "requirementPriority": "MANDATORY",
"checksComposition": "oneOf", "checksComposition": "oneOf",
"applyIf": "request.headers('traceparent').values.size() > 0",
"checks": [ "checks": [
{ {
"type": "REGEX", "type": "REGEX",
......
...@@ -90,13 +90,14 @@ ...@@ -90,13 +90,14 @@
{ {
"selector": "request.headers('traceparent').values", "selector": "request.headers('traceparent').values",
"id": "traceparent_parameter_presence", "id": "traceparent_parameter_presence",
"description": "The traceparent parameter is mandatory in the HTTP header.", "description": "The traceparent parameter can be used only once.",
"requirementPriority": "MANDATORY", "requirementPriority": "MANDATORY",
"checksComposition": "oneOf", "checksComposition": "oneOf",
"applyIf": "request.headers('traceparent').values.size() > 0",
"checks": [ "checks": [
{ {
"type": "OCCURRENCE", "type": "OCCURRENCE",
"minOccurrence": 1, "minOccurrence": 0,
"maxOccurrence": 1 "maxOccurrence": 1
} }
] ]
......
...@@ -89,13 +89,13 @@ ...@@ -89,13 +89,13 @@
},{ },{
"selector": "request.headers('traceparent').values", "selector": "request.headers('traceparent').values",
"id": "traceparent_parameter_presence", "id": "traceparent_parameter_presence",
"description": "The traceparent parameter is mandatory in the HTTP header.", "description": "The traceparent parameter can be used only once.",
"requirementPriority": "MANDATORY", "requirementPriority": "MANDATORY",
"checksComposition": "oneOf", "checksComposition": "oneOf",
"checks": [ "checks": [
{ {
"type": "OCCURRENCE", "type": "OCCURRENCE",
"minOccurrence": 1, "minOccurrence": 0,
"maxOccurrence": 1 "maxOccurrence": 1
} }
] ]
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
"description": "traceparent parameter's value SHALL be as defined in fhir.ch, section tracecontext.", "description": "traceparent parameter's value SHALL be as defined in fhir.ch, section tracecontext.",
"requirementPriority": "MANDATORY", "requirementPriority": "MANDATORY",
"checksComposition": "oneOf", "checksComposition": "oneOf",
"applyIf": "request.headers('traceparent').values.size() > 0",
"checks": [ "checks": [
{ {
"type": "REGEX", "type": "REGEX",
......
...@@ -17,7 +17,7 @@ date: 2023-03-14 ...@@ -17,7 +17,7 @@ date: 2023-03-14
| HostChecking | REGEX | `^(http[s]?:\/\/)?[a-zA-Z0-9.\-\/]+(\:(\d)+)?$` | Host Shall be a server name | | HostChecking | REGEX | `^(http[s]?:\/\/)?[a-zA-Z0-9.\-\/]+(\:(\d)+)?$` | Host Shall be a server name |
| Authorization_parameter_presence | OCCURRENCE | 1..1 | The Authorization parameter is mandatory | | Authorization_parameter_presence | OCCURRENCE | 1..1 | The Authorization parameter is mandatory |
| Authorization_parameter_value | REGEX | `^Bearer\\ [-a-zA-Z0-9._~+\\/]+=*$` | Authorization parameter's value SHALL be Bearer, followed by the token. | | Authorization_parameter_value | REGEX | `^Bearer\\ [-a-zA-Z0-9._~+\\/]+=*$` | Authorization parameter's value SHALL be Bearer, followed by the token. |
| traceparent_parameter_presence | OCCURRENCE | 1..1 | The traceparent parameter is mandatory in the HTTP header| | traceparent_parameter_presence | OCCURRENCE | 0..1 | The traceparent parameter can be used only once.|
| traceparent_parameter_value | REGEX | `^(?!f{2})([\da-f]{2})-(?!0{32})([\da-f]{32})-(?!0{16})([\da-f]{16})-([\da-f]{2})$` | traceparent parameter's value SHALL be as defined in fhir.ch, section [tracecontext](https://fhir.ch/ig/ch-epr-mhealth/tracecontext.html). | | traceparent_parameter_value | REGEX | `^(?!f{2})([\da-f]{2})-(?!0{32})([\da-f]{32})-(?!0{16})([\da-f]{16})-([\da-f]{2})$` | traceparent parameter's value SHALL be as defined in fhir.ch, section [tracecontext](https://fhir.ch/ig/ch-epr-mhealth/tracecontext.html). |
| _id_parameter_presence | OCCURENCE | 0..1 | _id parameter can be used only once. | | _id_parameter_presence | OCCURENCE | 0..1 | _id parameter can be used only once. |
| _id_parameter_value | REGEX | `^\S+$` | _id parameter is a token. | | _id_parameter_value | REGEX | `^\S+$` | _id parameter is a token. |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment