Skip to content

[🚀 Feature]: [dotnet] [bidi] Support new pattern for extensible types #15563

Open
@nvborisenko

Description

@nvborisenko

Description

Example:

CommandResponse = {
  type: "success",
  id: js-uint,
  result: ResultData,
  Extensible
}

https://learn.microsoft.com/en-us/dotnet/api/system.text.json.serialization.jsonextensiondataattribute?view=net-8.0

But it is not easy as seems. Any command and result is extensible! Meaning we should provide API to take this additional data from user. It can be achieved via AnyCommandOptions class which already exists.

Note: It will be hard to choose between IDictionary<string, object> and IDictionary<string, JsonElement>.

Have you considered any alternatives or workarounds?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-devtoolsIncludes everything BiDi or Chrome DevTools relatedC-dotnet.NET BindingsI-enhancementSomething could be betterR-help wantedIssues looking for contributions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions