OoasUtil.exe - General executable application used used to create Open Api 3.0 document based on OData Edm input.
OoasUtil.exe [--help|-h] [--version|-v] [Options]OoasUtil.exe is a tool used to convert CSDL to Open API document.
Output the "JSON" format Open API document;
Output the "YAML" format Open API document;
Output the document using key-as-segment style URLs.;
Output the document to expect all derived types in responses.;
Output the document to expect all derived types in request bodies.;
Output the document to expose pagination for collections.;
Output the document to use unqualified calls for bound operations.;
Output the document without examples in the schema.;
Output the "YAML" format Open API document;
Indicate which version, either 2 or 3, of the OpenApi specification to output. Only 2 or 3 are supported;
Indicate to where to get CSDL, from file or from Uri.
Indicate to output file name.
OoasUtil.exe -j -k -drs -drq -p -u -s 3 -i http://services.odata.org/TrippinRESTierService -o trip.json
The content of trip.json is similar at https://github.com/xuzhg/OData.OpenAPI/blob/main/Microsoft.OData.OpenAPI/Microsoft.OData.OpenAPI.Tests/Resources/TripService.OpenApi.json
This OoasUtil Command tool is currently not actively maintained, and an alternative command line tool, Hidi, is available for use in converting CSDL to OpenAPI. You can find the link to its README here which includes setup instructions.
