Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom extension x-enumMetaData to expose title and description for an enum value. #1383

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 29, 2021

  1. Adds custom extension x-enumMetaData

    Display or Description attributes from System.ComponentModel(.DataAnnotations) on enum values currently do not result in readable output on the JSON schema.
    
    This change adds the x-enumMetaData array with objects that have `title` and `description` properties.
    
    The two properties behave exactly like they do for normal types that are converted to schema, so this should feel very familiar to developers.
    q42jaap committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    812b4b2 View commit details
    Browse the repository at this point in the history