Skip to content

Marking required fields in OpenApi swagger document #235

@bnarayanared

Description

@bnarayanared

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions