Skip to content

Commit 5a216b7

Browse files
author
maria-farooq
authored
Merge pull request #2901 from RestComm/github2900
allow undefined properties at profile doc level
2 parents eef208a + fc03407 commit 5a216b7

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

restcomm/restcomm.docs/sources-asciidoc/src/main/asciidoc/api/profile-api.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ REST API. The Default Profile Sid is "PRae6e420f425248d6a26948c17a9e2acf"
2020

2121
Since the Profile configuration is expected to grow as required, the Profile entity
2222
is defined by a JSON schema, rather than regular properties, representing a
23-
document used as generic container.
23+
document used as generic container.
24+
25+
The REST API will validate well-known contains
26+
of the document that are used by RestcommConnect during session handling logic. The
27+
rest of the document will not be validated, with the only constraint of a
28+
maximum size limitation of 10MB. This means the REST API consumer may use the Profile
29+
document to store/retrieve any kind of arbitrary information as long as the document is
30+
a valid JSON document.
2431

2532
All Profiles REST API is only accesible by SuperAdmin credentials. With the exception
2633
of reading the associated Profile, where all Roles are allowed if the queried profile

restcomm/restcomm.http/src/main/resources/org/restcomm/connect/http/schemas/rc-profile-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://json-schema.org/draft-04/schema#",
33
"id": "resource:/org/restcomm/connect/http/schemas/rc-profile-schema.json#",
4-
"additionalProperties": false,
4+
"additionalProperties": true,
55
"type": "object",
66
"properties": {
77
"featureEnablement": {

restcomm/restcomm.http/src/test/resources/org/restcomm/connect/http/schemas/freePlan.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
"time" : 30,
2323
"timeUnit" : "days"
2424
}
25-
}
25+
}
26+
,"planSubscriptionDisplay" : true
2627
}

0 commit comments

Comments
 (0)