Azure / autorest.cli

Autorest plugin to Azure CLI command modules and other tooling
MIT License
8 stars 12 forks source link

Missing required parameter in genereated code #102

Open qwordy opened 4 years ago

qwordy commented 4 years ago

In azure-rest-api-specs\specification\alertsmanagement\resource-manager\Microsoft.AlertsManagement\stable\2019-06-01\SmartDetectorAlertRulesApi.json

    "required": [
        "state",
        "severity",
        "frequency",
        "detector",
        "scope",
        "actionGroups"
    ],

In generated code, detector is missing. And required parameters should not have default value None in custom function.