OpenAPI.NET.OData icon indicating copy to clipboard operation
OpenAPI.NET.OData copied to clipboard

information / documentation

Open figuerres opened this issue 3 years ago • 1 comments

i am currently using nswag for my open api front end. can i use this package to plug into nswag ? if i can how should i do that ?

if not can we see an example of an open api demo that uses this package to expose odata ?

right now i see several parts of how to get OData and Open API working but it seems like there are 10 different ways that folks are doing it and getting different amounts of success in the end.

figuerres avatar Jul 15 '22 15:07 figuerres

This library generates OpenAPI v3 descriptions. If nswag can take those as input then it should work just fine with nswag.

darrelmiller avatar Sep 08 '22 14:09 darrelmiller

@figuerres like @darrelmiller mentioned, this package takes in an Edm Model (from CSDL) and converts it to CSDL:

CsdlReader.TryParse(XElement.Parse(csdlText).CreateReader(), out model, out errors)
OpenApiConvertSettings settings = new OpenApiConvertSettings();
OpenApiDocument document = model.ConvertToOpenApi(settings);

Does this fit in with your requirements?

irvinesunday avatar May 29 '23 14:05 irvinesunday

@figuerres closing this issue. Feel free to re-open if you feel the need to

irvinesunday avatar Nov 15 '23 14:11 irvinesunday