mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-13 01:20:24 +02:00
change values to parameters in schema
This commit is contained in:
@ -40,7 +40,7 @@ Blank values converted to `null`/`None`
|
|||||||
"structured_data": [
|
"structured_data": [
|
||||||
{
|
{
|
||||||
"identity": string,
|
"identity": string,
|
||||||
"values": {
|
"parameters": {
|
||||||
"<key>": string
|
"<key>": string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -67,7 +67,7 @@ Examples:
|
|||||||
"structured_data": [
|
"structured_data": [
|
||||||
{
|
{
|
||||||
"identity": "exampleSDID@32473",
|
"identity": "exampleSDID@32473",
|
||||||
"values": {
|
"parameters": {
|
||||||
"iut": "3",
|
"iut": "3",
|
||||||
"eventSource": "Application",
|
"eventSource": "Application",
|
||||||
"eventID": "1011"
|
"eventID": "1011"
|
||||||
@ -75,7 +75,7 @@ Examples:
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"identity": "examplePriority@32473",
|
"identity": "examplePriority@32473",
|
||||||
"values": {
|
"parameters": {
|
||||||
"class": "high"
|
"class": "high"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ Blank values converted to `null`/`None`
|
|||||||
"structured_data": [
|
"structured_data": [
|
||||||
{
|
{
|
||||||
"identity": string,
|
"identity": string,
|
||||||
"values": {
|
"parameters": {
|
||||||
"<key>": string
|
"<key>": string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -62,7 +62,7 @@ Examples:
|
|||||||
"structured_data": [
|
"structured_data": [
|
||||||
{
|
{
|
||||||
"identity": "exampleSDID@32473",
|
"identity": "exampleSDID@32473",
|
||||||
"values": {
|
"parameters": {
|
||||||
"iut": "3",
|
"iut": "3",
|
||||||
"eventSource": "Application",
|
"eventSource": "Application",
|
||||||
"eventID": "1011"
|
"eventID": "1011"
|
||||||
@ -70,7 +70,7 @@ Examples:
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"identity": "examplePriority@32473",
|
"identity": "examplePriority@32473",
|
||||||
"values": {
|
"parameters": {
|
||||||
"class": "high"
|
"class": "high"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -206,7 +206,7 @@ def _process(proc_data: List[Dict]) -> List[Dict]:
|
|||||||
for val_obj in _extract_kv(a_struct):
|
for val_obj in _extract_kv(a_struct):
|
||||||
my_values.update(val_obj)
|
my_values.update(val_obj)
|
||||||
|
|
||||||
struct_obj.update({'values': my_values}) # type: ignore
|
struct_obj.update({'parameters': my_values}) # type: ignore
|
||||||
structs_list.append(struct_obj)
|
structs_list.append(struct_obj)
|
||||||
|
|
||||||
item['structured_data'] = structs_list
|
item['structured_data'] = structs_list
|
||||||
|
Reference in New Issue
Block a user