Title: GeoJson.Text & Swagger · Issue #26 · GeoJSON-Net/GeoJSON.Text · GitHub
Open Graph Title: GeoJson.Text & Swagger · Issue #26 · GeoJSON-Net/GeoJSON.Text
X Title: GeoJson.Text & Swagger · Issue #26 · GeoJSON-Net/GeoJSON.Text
Description: 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 s...
Open Graph Description: 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.SupportNonNullableReferen...
X Description: 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.SupportNonNullable...
Opengraph URL: https://github.com/GeoJSON-Net/GeoJSON.Text/issues/26
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"GeoJson.Text \u0026 Swagger","articleBody":"Would anyone be able to point me at why types aren't showing as non-nullable in generated clients?\r\n\r\ni.e. I have the following:\r\n```cs\r\n builder.Services.AddSwaggerGen(opts =\u003e\r\n {\r\n opts.SupportNonNullableReferenceTypes();\r\n ...\r\n```\r\n\r\nBut when I generate the schema I can see nullability isn't respected.\r\n\r\nThe `Features` property on `FeatureCollection` for example is declared as non-nullable [here](https://github.com/GeoJSON-Net/GeoJSON.Text/blob/main/src/GeoJSON.Text/Feature/FeatureCollection.cs#L49)\r\n\r\nBut then when generating an OpenApi schema it has `nullable: true`\r\n```json\r\n\"features\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/Feature\"\r\n },\r\n \"nullable\": true // \u003c--\r\n}\r\n```","author":{"url":"https://github.com/MitchellW-DWL","@type":"Person","name":"MitchellW-DWL"},"datePublished":"2024-04-30T09:00:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/26/GeoJSON.Text/issues/26"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f33e8bcc-8b07-1303-5903-0765dcaa923f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3D2:3B0DF9:8B6E47:B419E3:697DFF53 |
| html-safe-nonce | 446f2e1557f5e446dc66b7c3c461613b1c9063e9a88c046421096425df52eec8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0QyOjNCMERGOTo4QjZFNDc6QjQxOUUzOjY5N0RGRjUzIiwidmlzaXRvcl9pZCI6IjI4Njc5MzY2OTM5NTQ5MzY2NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 34f392c59bfcf9d2a6779cba2f33f1a419c9c103d5ba70930415cbcab9270788 |
| hovercard-subject-tag | issue:2270915427 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GeoJSON-Net/GeoJSON.Text/26/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c2f3cdf784c669ba8374c751ea7b59735894e5341b2f160cfa07da5cd98767a5/GeoJSON-Net/GeoJSON.Text/issues/26 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2f3cdf784c669ba8374c751ea7b59735894e5341b2f160cfa07da5cd98767a5/GeoJSON-Net/GeoJSON.Text/issues/26 |
| og:image:alt | 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.SupportNonNullableReferen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MitchellW-DWL |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/GeoJSON-Net/GeoJSON.Text git https://github.com/GeoJSON-Net/GeoJSON.Text.git |
| octolytics-dimension-user_id | 11492205 |
| octolytics-dimension-user_login | GeoJSON-Net |
| octolytics-dimension-repository_id | 438737712 |
| octolytics-dimension-repository_nwo | GeoJSON-Net/GeoJSON.Text |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 438737712 |
| octolytics-dimension-repository_network_root_nwo | GeoJSON-Net/GeoJSON.Text |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width