Swagger nullable enum. Net Core Web Api with SwashBuckle.

Swagger nullable enum. Based on this previous issue (#1851) I am assuming this would be a bug and not expected behavior and might possibly be related to a difference in swagger 2. Apr 5, 2021 · I found the issue in version 13. In all cases, non-null values must validate against these constraints. But a guess: The ItemType definition has both nullable: true and a null value in the enum list. All values in an enum must adhere to the specified type. 6. Though, if the named enum is used in difference contexts (one nullable, one not) you really can't extract to a shared named type, unless using OpenAPI 3. Note: nullable is not the same as an optional parameter or an empty-valued parameter. Which version did you use? And what does the Swagger document look like? Does it actually include nullable:true for TestProp? May 29, 2020 · Are there any plans to add support for Nullable Reference Types? It would be nice, and with NRT we would no longer need to annotate required properties with the [Required] attribute. If you need to specify descriptions for enum items, you can do this in the description of the parameter or property: Mar 18, 2022 · I am running . 2yo pcteo zc1ad jnib pwrbh bn6nv snhy cj8gw fv hvuai