-
When faced with the option of enabling nullable reference types, we have several choices for **reference type** based properties.
* Given a *non-nullable read-write* property, should we A) use a full…
-
When using the generator:
```
var schemaGenerator = new JSchemaGenerator
{
DefaultRequired = Required.DisallowNull
};
```
Any model with the "Require…
-
In order to choose [the way of the TolerantReader](http://martinfowler.com/bliki/TolerantReader.html).
I have a swagger.json with
```
...
"properties": {
"propertyICareAbout": {
…
-
I have a string array field which validates not only the length of the array, but the length of the strings in the array as well:
```
"Tags": {
"type": "array",
"minItems": 1,
…
-
I'm using NSwag.CodeGeneration.CSharp v13.9.4 to generate a C# Http Client. Here is how I generate the client code:
public string GenerateClient(string swaggerSpec)
{
var document…
-
I have a service that exposes a swagger.json file that goes like this:
```json
...
"AccountSummary": {
"type": "object",
"additionalProperties": false,
"properti…
-
### Describe the bug
We're having the issue, that the typespec compiler doesn't set the `nullable: true` property inside the openapi.yaml file for nullable model properties. If we try to add the open…
-
I want my client classes to be generated as abstract like the server classes are. But they are not. How can i fix this problem. Plus the generated function on client picks the 1st class in the list of…
-
It's possible that this change is by design but we (me and my colleague @mwadams ) couldn't find a description of an intention to change this. In any case, the effect is that we get a compiler warning…
idg10 updated
2 months ago
-
**Version Used**: Visual Studio 2022, .NET 6.0
**Steps to Reproduce**:
Create a new C# library in Visual Studio 2022. Add this class:
```csharp
public sealed class Element
{
public El…