Skip to content

Add setting for generating markdownDescription in addition to description #280

@applejag

Description

@applejag

Given this:

foo: 123 # @schema description: hello **world**

I want this:

 "foo": {
   "type": "integer",
   "description": "hello **world**",
+  "markdownDescription": "hello **world**"
 }

Suggested implementation:

  1. add a --markdown-description flag which copies any description property into any unset markdownDescription fields
    flag could have an enum value:

    • --markdown-description=none removes any markdownDescription (default)
    • --markdown-description=copy-description copies value from description
    • --markdown-description=replace-description copies value from description and removes the description
  2. add a # @schema description.md: foobar annotation to manually set markdown description, which should always override whatever the --markdown-description flag sets.

Motivation:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions