* Emit the `[JsonInclude]` attribute for an internally-marked property and * return the C# access modifier to use for the property declaration. * * `[JsonInclude]` is required because System.Text.Json only auto-(de)serialises * public members by default; without it, the `internal` setter would s
(lines: string[], schema: JSONSchema7, indent = " ")
| 530 | * be skipped. |
| 531 | */ |
| 532 | function pushCSharpInternalAttribute(lines: string[], schema: JSONSchema7, indent = " "): "public" | "internal" { |
| 533 | const propInternal = isSchemaInternal(schema); |
| 534 | if (propInternal) lines.push(`${indent}[JsonInclude]`); |
| 535 | return propInternal ? "internal" : "public"; |
| 536 | } |
| 537 | |
| 538 | // ══════════════════════════════════════════════════════════════════════════════ |
| 539 | // SESSION EVENTS |
no test coverage detected
searching dependent graphs…