Documentation
¶
Overview ¶
Package schema builds the machine-readable command and output schemas that `jira agent schema` emits and the docs generator reads. It walks the live cobra tree and derives the published error code enum from errtax, so command and error schemas cannot drift from their implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DocentRegistry ¶ added in v0.14.0
func DocentRegistry() docent.SchemaRegistry
DocentRegistry bridges the host's schema knowledge into docent's registry form: the typed-Output-derived output schemas and the hand-written --json-input schemas, keyed by full command path ("jira issue create"). Registry keys with no matching command are ignored by Apply, so alias ops cost nothing.
func OutputContract ¶ added in v0.14.0
OutputContract returns the tool-wide envelope and structured-error schemas — shapes that describe every response rather than one command, so they ride the docent schema root's extensions instead of a command node.
func OutputSchemaForCommand ¶ added in v0.6.4
OutputSchemaForCommand returns the registered JSON Schema for the `data` payload of cmd's response envelope, and whether a command-specific schema is registered. Commands without one return the standard envelope only, so the caller renders nothing rather than an empty shape.
It exposes the same registry that `jira schema` emits, so the docs generator can render an "Output fields" table from it. The table is generated, not hand-written, so it cannot drift from the real output.
Types ¶
This section is empty.