Azure / LogicAppsUX

https://learn.microsoft.com/azure/logic-apps
MIT License
73 stars 80 forks source link

Designer doesn't load Json schema of HTTP Request trigger as defined #5101

Closed nobuko-yamada closed 3 weeks ago

nobuko-yamada commented 1 month ago

Describe the Bug with repro steps

Create 2 workflows as below

Defining “Description”, “Execarray” and “Mode”

image

But there is no “description” Edit in Parent workflow below: (Only “Execarray”, “Mode”)

image

Parent

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "CallChild": {
                "inputs": {
                    "body": {
                        "description": "description",
                        "execarray": "array",
                        "mode": "CDI"
                    },
                    "host": {
                        "workflow": {
                            "id": "workflow1"
                        }
                    },
                    "retryPolicy": {
                        "type": "none"
                    }
                },
                "runAfter": {},
                "type": "workflow"
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "inputs": {
                    "schema": {}
                },
                "kind": "Http",
                "type": "Request"
            }
        }
    },
    "kind": "Stateful"
}

Child

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {},
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "inputs": {
                    "schema": {
                        "properties": {
                            "description": {
                                "type": [
                                    "string"
                                ]
                            },
                            "execarray": {
                                "items": {
                                    "properties": {
                                        "name": {
                                            "type": "string"
                                        },
                                        "param1": {
                                            "type": "string"
                                        },
                                        "param2": {
                                            "type": "string"
                                        },
                                        "param3": {
                                            "type": "string"
                                        },
                                        "param4": {
                                            "type": "string"
                                        },
                                        "param5": {
                                            "type": "string"
                                        }
                                    },
                                    "type": "object"
                                },
                                "type": "array"
                            },
                            "mode": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "description",
                            "mode",
                            "execarray"
                        ],
                        "type": "object"
                    }
                },
                "kind": "Http",
                "type": "Request"
            }
        }
    },
    "kind": "Stateful"
}

It occurs each of Consumption/Standard, EastUS/JapanEast.

What type of Logic App Is this happening in?

Standard (Portal)

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

Parent

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "CallChild": {
                "inputs": {
                    "body": {
                        "description": "description",
                        "execarray": "array",
                        "mode": "CDI"
                    },
                    "host": {
                        "workflow": {
                            "id": "workflow1"
                        }
                    },
                    "retryPolicy": {
                        "type": "none"
                    }
                },
                "runAfter": {},
                "type": "workflow"
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "inputs": {
                    "schema": {}
                },
                "kind": "Http",
                "type": "Request"
            }
        }
    },
    "kind": "Stateful"
}

Child

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {},
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "inputs": {
                    "schema": {
                        "properties": {
                            "description": {
                                "type": [
                                    "string"
                                ]
                            },
                            "execarray": {
                                "items": {
                                    "properties": {
                                        "name": {
                                            "type": "string"
                                        },
                                        "param1": {
                                            "type": "string"
                                        },
                                        "param2": {
                                            "type": "string"
                                        },
                                        "param3": {
                                            "type": "string"
                                        },
                                        "param4": {
                                            "type": "string"
                                        },
                                        "param5": {
                                            "type": "string"
                                        }
                                    },
                                    "type": "object"
                                },
                                "type": "array"
                            },
                            "mode": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "description",
                            "mode",
                            "execarray"
                        ],
                        "type": "object"
                    }
                },
                "kind": "Http",
                "type": "Request"
            }
        }
    },
    "kind": "Stateful"
}

```

Screenshots or Videos

No response

Browser

Chrome, Edge

Additional context

No response

nobuko-yamada commented 1 month ago

When we define multiple types of the parameter, the edit will be ommited from the parent workflow.

image

In case above, param1 is not shown.

image

Eric-B-Wu commented 3 weeks ago

new Adding a gif of it after fix