Azure / Azure/azure-openapi-validator

required and default at the same time should trigger at least a warning

Open
#99 0 comments 0 reactions 0 assignees View on GitHub
sdk-rule
Dominant language
TypeScript
Stars
53
Forks
57
Avg merge
1d 23h
Merged PRs (30d)
2

Description

```json
"zoneType": {
"type": "string",
"enum": [
"Public",
"Private"
],
"x-ms-enum": {
"name": "ZoneType",
"modelAsString": false
},
"default": "Public",
"description": "The type of this DNS zone (Public or Private)."
}
},
"required": [
"zoneType"
],
```

Swagger seems to not allow this, and least Python runtime does not support it. However, Autorest does not fail, it's why I'm cautious and talk about "warning" until we have a strong agreement on it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.