Skip to content

Add URL Annotation #277

Closed
Closed
@philkra

Description

@philkra

🚀 Feature Proposal

Annotation that associates an URL to a property and/or type, that is then reflected in the spec.

Motivation

Additional meta data to improve e.g. developer experience to link to a resource for more context.

Example

in TypeScript:

/** @url https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#byte-units */
type ByteSize = string

in the spec:

{
    "name": "data.input_bytes",
    "required": false,
    "type": {
    "kind": "instance_of",
    "type": {
        "name": "ByteSize",
        "namespace": "internal",
        "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#byte-units"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions