Skip to content

Implement GetConverterInfo(src, dst) method #62

@kostas-jonauskas

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.

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