Skip to content

[Bug]: Swashbuckle.AspNetCore.Cli v.6.7.0 doesn't generate format of the property #3005

@AndriiBlandov

Description

@AndriiBlandov

Describe the bug

In generated swagger.jwon property description object doesn't contain "format"

Expected behavior

"components": {
"schemas": {
"WeatherForecast": {
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date-time"
},

Actual behavior

"components": {
"schemas": {
"WeatherForecast": {
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date-time"
},

Steps to reproduce

Generate swagger.json for ASP.NET Core Web Api using class with DateTime property

Exception(s) (if any)

No response

Swashbuckle.AspNetCore version

6.7.0

.NET Version

8.0.303

Anything else?

With version 6.6.2 everything works as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-reproA minimal reproducible example is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions