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": [
|
||||
{
|
||||
"identity": string,
|
||||
"values": {
|
||||
"parameters": {
|
||||
"<key>": string
|
||||
}
|
||||
}
|
||||
@ -67,7 +67,7 @@ Examples:
|
||||
"structured_data": [
|
||||
{
|
||||
"identity": "exampleSDID@32473",
|
||||
"values": {
|
||||
"parameters": {
|
||||
"iut": "3",
|
||||
"eventSource": "Application",
|
||||
"eventID": "1011"
|
||||
@ -75,7 +75,7 @@ Examples:
|
||||
},
|
||||
{
|
||||
"identity": "examplePriority@32473",
|
||||
"values": {
|
||||
"parameters": {
|
||||
"class": "high"
|
||||
}
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ Blank values converted to `null`/`None`
|
||||
"structured_data": [
|
||||
{
|
||||
"identity": string,
|
||||
"values": {
|
||||
"parameters": {
|
||||
"<key>": string
|
||||
}
|
||||
}
|
||||
@ -62,7 +62,7 @@ Examples:
|
||||
"structured_data": [
|
||||
{
|
||||
"identity": "exampleSDID@32473",
|
||||
"values": {
|
||||
"parameters": {
|
||||
"iut": "3",
|
||||
"eventSource": "Application",
|
||||
"eventID": "1011"
|
||||
@ -70,7 +70,7 @@ Examples:
|
||||
},
|
||||
{
|
||||
"identity": "examplePriority@32473",
|
||||
"values": {
|
||||
"parameters": {
|
||||
"class": "high"
|
||||
}
|
||||
}
|
||||
@ -206,7 +206,7 @@ def _process(proc_data: List[Dict]) -> List[Dict]:
|
||||
for val_obj in _extract_kv(a_struct):
|
||||
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)
|
||||
|
||||
item['structured_data'] = structs_list
|
||||
|
Reference in New Issue
Block a user