OData / lab

This repository is for exploring new ideas and developing early prototypes of various OData stacks.
Other
48 stars 59 forks source link

Added TargetOpenAPIVersion CommandOption. #98

Open ozippy opened 4 years ago

ozippy commented 4 years ago

I want to be able to generate an OpenAPI V2 file from the Microsoft Graph metadata.

I've made a small change to the OData2OpenAPI tool to allow the user to specify the TargetOpenAPIVersion as a command option. It will default to 3 unless 2 is specified.

An example of the command options would be; --csdl=c:\temp\cleanMetadataWithDescriptionsv1.0.xml --output=swaggerV2.json --TargetOpenAPIVersion=2

I've never created a pull request to an open repo before, so I hope I'm doing this right.

Thanks

msftclas commented 4 years ago

CLA assistant check
All CLA requirements met.