Skip to content

Datasync Server Sample does not generate correct swagger.json when using OpenApi driver #314

Open
@adrianhall

Description

@adrianhall

Describe the bug

When using the Sample.Datasync.Server and setting the swagger generator to net9, the following swagger document is generated:

{
  "openapi": "3.0.1",
  "info": {
    "title": "Sample.Datasync.Server | v1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://localhost:5001"
    }
  ],
  "paths": { },
  "components": { }
}

This is obviously wrong.

To Reproduce

Steps to reproduce the behavior:

  1. Open the Sample.Datasync.Server solution
  2. Press F5
  3. Point browser at https://localhost:5001/swagger/v1/swagger/json

Expected behavior

I'd expect a correct swagger document to be displayed.

What platforms?

  • Server:
    • Version of dotnet being used to compile? 9.0.2
    • Library versions?
      • CommunityToolkit.Datasync.Server v9.0.1
      • EntityFrameworkCore v9.0.2
    • What database are you using?
      • SQL LocalDB
    • Where are you running the server?
      • Locally

Metadata

Metadata

Assignees

Labels

ExamplesServerImprovements or additions to the server code

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions