Skip to content

Commit 00e01d0

Browse files
committed
feat: added new proto json files
1 parent 0b17bfb commit 00e01d0

File tree

126 files changed

+2894
-2295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+2894
-2295
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"variant": "ARRAY",
3+
"identifier": "HTTP_HEADER_MAP",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "HTTP Headers"
8+
}
9+
],
10+
"rules": [
11+
{
12+
"parentType": {
13+
"parentType": {
14+
"genericType": {
15+
"dataTypeIdentifier": "ARRAY",
16+
"genericMappers": [
17+
{
18+
"source": [
19+
{
20+
"dataTypeIdentifier": "HTTP_HEADER_ENTRY"
21+
}
22+
],
23+
"target": "T",
24+
"genericCombinations": []
25+
}
26+
]
27+
}
28+
}
29+
}
30+
}
31+
],
32+
"genericKeys": [],
33+
"version": null
34+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"variant": "OBJECT",
3+
"identifier": "HTTP_HEADER_ENTRY",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "HTTP Header Entry"
8+
}
9+
],
10+
"rules": [
11+
{
12+
"containsKey": {
13+
"key": "key",
14+
"dataTypeIdentifier": {
15+
"dataTypeIdentifier": "TEXT"
16+
}
17+
}
18+
},
19+
{
20+
"containsKey": {
21+
"key": "value",
22+
"dataTypeIdentifier": {
23+
"dataTypeIdentifier": "TEXT"
24+
}
25+
}
26+
},
27+
{
28+
"parentType": {
29+
"parentType": {
30+
"dataTypeIdentifier": "OBJECT"
31+
}
32+
}
33+
}
34+
],
35+
"genericKeys": []
36+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"variant": "OBJECT",
3+
"identifier": "HTTP_REQUEST",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "HTTP Request"
8+
}
9+
],
10+
"rules": [
11+
{
12+
"containsKey": {
13+
"key": "method",
14+
"dataTypeIdentifier": {
15+
"dataTypeIdentifier": "HTTP_METHOD"
16+
}
17+
}
18+
},
19+
{
20+
"containsKey": {
21+
"key": "url",
22+
"dataTypeIdentifier": {
23+
"dataTypeIdentifier": "HTTP_URL"
24+
}
25+
}
26+
},
27+
{
28+
"containsKey": {
29+
"key": "body",
30+
"dataTypeIdentifier": {
31+
"dataTypeIdentifier": "OBJECT"
32+
}
33+
}
34+
},
35+
{
36+
"containsKey": {
37+
"key": "headers",
38+
"dataTypeIdentifier": {
39+
"dataTypeIdentifier": "HTTP_HEADER_MAP"
40+
}
41+
}
42+
},
43+
{
44+
"parentType": {
45+
"parentType": {
46+
"dataTypeIdentifier": "OBJECT"
47+
}
48+
}
49+
}
50+
],
51+
"genericKeys": []
52+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"variant": "OBJECT",
3+
"identifier": "HTTP_RESPONSE",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "HTTP Response"
8+
}
9+
],
10+
"rules": [
11+
{
12+
"containsKey": {
13+
"key": "headers",
14+
"dataTypeIdentifier": {
15+
"dataTypeIdentifier": "HTTP_HEADER_MAP"
16+
}
17+
}
18+
},
19+
{
20+
"containsKey": {
21+
"key": "body",
22+
"dataTypeIdentifier": {
23+
"dataTypeIdentifier": "OBJECT"
24+
}
25+
}
26+
},
27+
{
28+
"parentType": {
29+
"parentType": {
30+
"dataTypeIdentifier": "OBJECT"
31+
}
32+
}
33+
}
34+
],
35+
"genericKeys": []
36+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"variant": "TYPE",
3+
"identifier": "HTTP_METHOD",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "HTTP Method"
8+
}
9+
],
10+
"rules": [
11+
{
12+
"itemOfCollection": {
13+
"items": [
14+
{
15+
"stringValue": "GET"
16+
},
17+
{
18+
"stringValue": "POST"
19+
},
20+
{
21+
"stringValue": "PUT"
22+
},
23+
{
24+
"stringValue": "DELETE"
25+
},
26+
{
27+
"stringValue": "PATCH"
28+
},
29+
{
30+
"stringValue": "HEAD"
31+
}
32+
]
33+
}
34+
}
35+
],
36+
"genericKeys": []
37+
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"variant": 2,
2+
"variant": "TYPE",
33
"identifier": "HTTP_STATUS_CODE",
44
"name": [
55
{
@@ -9,13 +9,11 @@
99
],
1010
"rules": [
1111
{
12-
"config": {
13-
"NumberRange": {
14-
"from": 100,
15-
"to": 599
16-
}
12+
"numberRange": {
13+
"from": 100,
14+
"to": 599
1715
}
1816
}
1917
],
20-
"generic_keys": []
18+
"genericKeys": []
2119
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"variant": "TYPE",
3+
"identifier": "HTTP_URL",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "HTTP Route"
8+
}
9+
],
10+
"rules": [
11+
{
12+
"regex": {
13+
"pattern": "/^/\\w+(?:[.:~-]\\w+)*(?:/\\w+(?:[.:~-]\\w+)*)*$/"
14+
}
15+
}
16+
],
17+
"genericKeys": []
18+
}

definitions/http/flow_type/http.json renamed to definitions/http/flow_type/http.proto.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
{
55
"identifier": "HTTP_URL",
66
"unique": false,
7-
"data_type_identifier": "HTTP_URL",
8-
"default_value": null,
7+
"dataTypeIdentifier": "HTTP_URL",
8+
"defaultValue": null,
99
"name": [
1010
{
1111
"code": "en-US",
@@ -22,8 +22,8 @@
2222
{
2323
"identifier": "HTTP_METHOD",
2424
"unique": false,
25-
"data_type_identifier": "HTTP_METHOD",
26-
"default_value": null,
25+
"dataTypeIdentifier": "HTTP_METHOD",
26+
"defaultValue": null,
2727
"name": [
2828
{
2929
"code": "en-US",
@@ -40,8 +40,8 @@
4040
{
4141
"identifier": "HTTP_HOST",
4242
"unique": false,
43-
"data_type_identifier": "TEXT",
44-
"default_value": null,
43+
"dataTypeIdentifier": "TEXT",
44+
"defaultValue": null,
4545
"name": [
4646
{
4747
"code": "en-US",
@@ -56,8 +56,8 @@
5656
]
5757
}
5858
],
59-
"input_type_identifier": "HTTP_REQUEST",
60-
"return_type_identifier": "HTTP_RESPONSE",
59+
"inputTypeIdentifier": "HTTP_REQUEST",
60+
"returnTypeIdentifier": "HTTP_RESPONSE",
6161
"editable": false,
6262
"name": [
6363
{
@@ -76,5 +76,6 @@
7676
"code": "en-US",
7777
"content": "A REST API is a web service that lets clients interact with data on a server using standard HTTP methods like GET, POST, PUT, and DELETE usually returning results in JSON format."
7878
}
79-
]
79+
],
80+
"version": null
8081
}

definitions/http/runtime_definition/control/http_control_respond.json renamed to definitions/http/runtime_definition/control/http_control_respond.proto.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
{
2-
"runtime_name": "http::control::respond",
3-
"runtime_parameter_definitions": [
2+
"runtimeName": "http::control::respond",
3+
"runtimeParameterDefinitions": [
44
{
5-
"data_type_identifier": {
6-
"type": {
7-
"DataTypeIdentifier": "HTTP_RESPONSE"
8-
}
5+
"dataTypeIdentifier": {
6+
"dataTypeIdentifier": "HTTP_RESPONSE"
97
},
10-
"runtime_name": "http_response",
11-
"default_value": null,
8+
"runtimeName": "http_response",
9+
"defaultValue": null,
1210
"name": [
1311
{
1412
"code": "en-US",
@@ -29,8 +27,8 @@
2927
]
3028
}
3129
],
32-
"return_type_identifier": null,
33-
"deprecation_message": [],
30+
"returnTypeIdentifier": null,
31+
"deprecationMessage": [],
3432
"name": [
3533
{
3634
"code": "en-US",
@@ -49,6 +47,6 @@
4947
"content": "Processes an HTTP response and returns it to the requesting client. This function typically completes the HTTP request–response cycle by delivering the server’s final output, such as headers, status codes, and body content, back to the client."
5048
}
5149
],
52-
"throws_error": false,
53-
"generic_keys": []
54-
}
50+
"throwsError": false,
51+
"genericKeys": []
52+
}

0 commit comments

Comments
 (0)