SOFA icon indicating copy to clipboard operation
SOFA copied to clipboard

[FEATURE REQUEST] Missing functionality to represent user scalars as swagger types

Open mannol opened this issue 5 years ago • 1 comments

I often use two scalars, Email and URL to represent, well, Email's and URL's in input as well as output types. When I use SOFA with openapi/swagger integration, these scalars show up as objects rather than their actual type, which is string. This is a very specific use case so I think SOFA should have an option for users to provide scalar <-> type name mapping when creating an openapi instance.

I'm thinking of contributing this myself, let me know what you think.

mannol avatar Oct 07 '20 08:10 mannol

@mannol That sounds great! Feel free to submit a PR and we will support you.

ardatan avatar Oct 07 '20 08:10 ardatan