Skip to content

[BUG] [C#] [GenericHost] Breaking change in path handling since v7.13 #21392

Open
@marcselman

Description

@marcselman

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
Description

Our OpenAPI spec contains a servers block at the bottom, similar to this:

  "servers": [
    {
      "url": "/some-path"
    }
  ]

This path would then be used in ClientUtils.CONTEXT_PATH as a path prefix for all endpoints.
But because of the changes in this PR #20896 this no longer works ( @devhl-labs ).

Our auto-generated NuGet packages now no longer work because this path is missing.

Is the servers block of the OpenAPI spec no longer supported? Is there a better/new way to set a prefix path for all endpoints? Or is this simply a bug?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions