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

Marking required fields in OpenApi swagger document

Open bnarayanared opened this issue 3 years ago • 3 comments

Currently in the version of the OpenApi dll we are using, the required fields aren’t marked. For eg: In the Leads/QualifyLead the Odata XML shows that these fileds: CreateAccount, CreateContact, CreateOpportunity, Status are Nullable=false (meaning required)

image

But the OpenApi swagger doesn’t show that these fields are required:

image

Steps to reproduce

Use any bound/unbound action and check the metadata and compare the OpenApi swagger generated and you will notice the nullable fields are not set as required.

Expected result

The OpenApi swagger marks the required fields and returns it as a part of the swagger document

Actual result

Currently in the version of the OpenApi dll we are using, the required fields aren’t marked.

bnarayanared avatar Jun 20 '22 18:06 bnarayanared

Which version of the conversion library are you using?

baywet avatar Jun 20 '22 18:06 baywet

image

I think currently we are using 1.1.2

bnarayanared avatar Jun 20 '22 22:06 bnarayanared

You mean 1.0.0-beta8 for this lib. Please upgrade to latest and see if you have the same issue

baywet avatar Jun 21 '22 02:06 baywet

I am assuming the upgrade fixed this issue. Please re-open if this is still a problem.

darrelmiller avatar Aug 18 '22 14:08 darrelmiller