Skip to content

Commit d2384f4

Browse files
committed
Update v10_00.md
1 parent d9ff732 commit d2384f4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

MyApp/_pages/releases/v10_00.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,9 @@ For organizations with legacy applications, it means **modernization is now econ
497497

498498
## Add ServiceStack Reference
499499

500-
Other disruptive changes in this release include nullable reference type annotations are now enabled by default, where previously DTOs would only include nullable annotations for Nullable Value Type properties:
500+
Other disruptive changes in this release include nullable reference type annotations are now enabled by default, where it's now assumed ServiceModel projects have `<Nullable>enable</Nullable>`.
501+
502+
Previously DTOs would only include nullable annotations for Nullable Value Type properties, now nullable reference types like `string? Notes`:
501503

502504
```csharp
503505
public partial class CreateBooking
@@ -522,9 +524,10 @@ public partial class CreateBooking
522524
}
523525
```
524526

525-
They're now being generated for optional (i.e. non-required) nullable Reference Types as well:
527+
Will be reflected in the generated DTOs for languages that support nullable annotations. Required reference properties like `Name` are required and optional reference properties like `Notes` are correctly annotated as optional:
526528

527529
```csharp
530+
// C# Geenrated DTOs
528531
public partial class CreateBooking
529532
: IReturn<IdResponse>, ICreateDb<Booking>
530533
{
@@ -545,9 +548,10 @@ public partial class CreateBooking
545548
}
546549
```
547550

548-
This is also reflected in generated TypeScript DTOs where required reference properties like `name` are no longer optional and optional reference properties like `notes` are now correctly annotated as optional:
551+
The same type annotations are also applied to TypeScript DTOs:
549552

550553
```ts
554+
// TypeScript Geenrated DTOs
551555
export class CreateBooking implements IReturn<IdResponse>, ICreateDb<Booking>
552556
{
553557
// @Validate(Validator="NotEmpty")

0 commit comments

Comments
 (0)