Skip to content

feat(plugin): forward formatter configuration - #446

Open
natalie-o-perret wants to merge 1 commit into
rest-sh:mainfrom
natalie-o-perret:feat/formatter-plugin-config
Open

natalie-o-perret wants to merge 1 commit into
rest-sh:mainfrom
natalie-o-perret:feat/formatter-plugin-config

Conversation

@natalie-o-perret

Copy link
Copy Markdown
Contributor

Summary

  • forwards plugins[<manifest name>] to formatter plugins on the start event
  • preserves the exact JSON bytes instead of coercing plugin-owned values
  • documents the wire format and covers the host-to-plugin path

Wire contract

plugin_config is an optional CBOR byte string containing the UTF-8 JSON from restish.json. It is omitted when no plugin config exists. Existing formatter plugins ignore the additive field.

{
  "plugins": {
    "pretty": {
      "nested_records": "auto"
    }
  }
}

Note

AI assistance: documentation, test scaffolding, PR description.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant