Skip to content

Ever thought about a feature to require explicit annotations to include a parameter in a code snippet #105

Open
@michaelgwelch

Description

@michaelgwelch

Hi @ErikWittern I'm maintaining a fork of this great library with some changes we've made.

One additional change I'm considering is to require some explicit "signal" to include a parameter in a code snippet.

The current default behavior can lead to non-sensical snippets or unnecessarily complicated snippets. For example, you may have mutually exclusive parameters. Or you may have headers that are seldom used show up in a snippet. For various reasons I want to control which parameters make it into the snippet.

Had you ever considered this feature when working on your library? I have an idea, but want to be careful of invalidating all existing test cases. So maybe I'll make it a config setting to enable this new mode. Once the mode is enabled I think it'll require vendor extensions on parameters or operations to signal which parameters are desired and which value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions