Add ? for madeOptional (#3820)
`madeOptional` implies the current property is optional, so adding the missing `?`
This commit is contained in:
Родитель
a54e3bddf9
Коммит
b7c70978ca
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
|
||||
changeKind: internal
|
||||
packages:
|
||||
- "@typespec/versioning"
|
||||
---
|
||||
|
||||
Updated doc of madeOptional
|
|
@ -68,7 +68,7 @@ model Foo {
|
|||
name: string;
|
||||
|
||||
@madeOptional(Versions.v2)
|
||||
nickname: string;
|
||||
nickname?: string;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ model Foo {
|
|||
name: string;
|
||||
|
||||
@madeOptional(Versions.v2)
|
||||
nickname: string;
|
||||
nickname?: string;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@ export type RenamedFromDecorator = (
|
|||
* model Foo {
|
||||
* name: string;
|
||||
* @madeOptional(Versions.v2)
|
||||
* nickname: string;
|
||||
* nickname?: string;
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
|
|
|
@ -155,7 +155,7 @@ extern dec renamedFrom(
|
|||
* model Foo {
|
||||
* name: string;
|
||||
* @madeOptional(Versions.v2)
|
||||
* nickname: string;
|
||||
* nickname?: string;
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче