Skip to content

OpenAPI Emitter: @example doc tag should compile to example field #3602

Open
@mcchrish

Description

@mcchrish

Clear and concise description of the problem

/**
 * Uniform Resource Name
 * @example urn:xx:service::foobar/d9aadcde-a4b3-4fba-9f20-c5bd2fdb5071
 */
scalar URN extends string;

Should compile to

    URN:
      type: string
      description: Uniform Resource Name
      example: urn:xx:service::foobar/d9aadcde-a4b3-4fba-9f20-c5bd2fdb5071

Checklist

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    design:neededA design request has been raised that needs a proposalemitter:openapi3Issues for @typespec/openapi3 emittertriaged:core

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions