Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

GeoJson.Text & Swagger #26

Copy link
Copy link
@MitchellW-DWL

Description

@MitchellW-DWL
Issue body actions

Would anyone be able to point me at why types aren't showing as non-nullable in generated clients?

i.e. I have the following:

        builder.Services.AddSwaggerGen(opts =>
        {
            opts.SupportNonNullableReferenceTypes();
            ...

But when I generate the schema I can see nullability isn't respected.

The Features property on FeatureCollection for example is declared as non-nullable here

But then when generating an OpenApi schema it has nullable: true

"features": {
  "type": "array",
  "items": {
    "$ref": "#/components/schemas/Feature"
  },
  "nullable": true // <--
}
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.