Skip to content

Implement GetConverterInfo(src, dst) method #62

Description

@kostas-jonauskas

It is extremely complicated to implement dynamic converters using the C# library. It is impossible to integrate a dynamic form/workflow, etc., without writing a ton of extra code and extra dependencies to parse the OpenAPI schema manually.

I suggest implementing a strongly typed model for the converter, something like:

public class Converter
{
    public string Title { get; set; }
    public string Summary { get; set; }
    public string AcceptsFormats { get; set; } // to build a form with accepts=".docx,.dot.,.doc" attribute
    public bool AcceptsMultiple { get; set; }
    public Dictionary<string, string> Parameters {get; set;}
    ...
}

And a method GetConverterInfo(src, dst), that parses the OpenAPI schema under the hood and returns a strongly typed model with all the required metadata about the converter, which allows building dynamic converters effortlessly.

Activity

  1. kostas-jonauskas commented on Nov 13, 2025

    @kostas-jonauskas
    ContributorAuthor

    Extend

    public Dictionary<string, string> Parameters {get; set;}

    to

    public List<ParameterModel> Parameters {get; set;}

    or similar, and include not only parameter name and value, but also other parameter metadata like the type, required, featured, description, default value, values enum (for dropdown), etc., etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions