Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Inputs · Automation Documentation

Direct answer

Documenting inputs lists every parameter, its type, allowed values, default and whether it is required, so users know exactly what to provide.

When to use this

Use this when documenting the parameters an automation accepts.

First 30 seconds

1. Document inputs precisely.

2. Generate from code where possible (terraform-docs, ansible-doc).

3. Examples.

4. Constraints.

5. Keep in sync.

Operational verification

code definitions → generated input docs

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
JSON Schema 2020-12 / automation documentation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformJSON Schema 2020-12 / automation documentation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when documenting the parameters an automation accepts.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

Verification compares documentation to executable reality. Enumerate runtime/schema inputs and show each appears in the documentation with matching name/type/required/default semantics. Parse and validate every published request/example with the production validator, including at least one intentionally invalid example that demonstrates the expected error shape. If the automation exposes CLI, API and UI front ends, confirm they map to the same canonical internal input rather than documenting three subtly different contracts. For changes, run a compatibility fixture set from previous documentation versions. Finally execute a safe accepted example through the real path and correlate the normalized request with target read-back. This keeps documentation from becoming an attractive but untested parallel specification.

Step 2 Common mistakes Narrow the fault
  • Inputs documented without types or allowed values.
Step 3 Where it fails Narrow the fault

Separate documentation accuracy, schema accuracy and runtime semantics. Documentation can faithfully describe a schema that the application does not actually enforce; the schema can be correct while an API layer coerces values before validation; and a fully valid request can still fail target preconditions. Do not fix a runtime mismatch by editing only prose. Identify which artifact is authoritative for each property, reconcile the executable contract first, then regenerate/update documentation and fixtures. Likewise, do not include environment-specific secret or target values in examples just to make them executable. Preserve versioned schema, generated reference and validated examples together, and rerun consistency checks whenever the input contract changes.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Name, type, allowed values, default, required.
  • Match the code's validation.
  • Show an example.
Key checks
  • Input reference (name, type, required, default, example) — contract
  • Generated docs (argument_specs, terraform-docs) — accuracy
  • Validation rules documented — constraints
ReferenceWhy it matters1 section · depth on demand

In depth

Input documentation describes every parameter an automation accepts: name, meaning, type, allowed values, default, and examples — so people can run it correctly without reading the code.

FieldExample
Namevlan_id
DescriptionVLAN to create on access switches
Type/rangeInteger 2–4094
RequiredYes
Default—
Example120

Generate the documentation from the same schema that validates inputs (argument specs, JSON Schema, PowerShell parameter help), so documentation and validation never disagree.

ReferenceImportant terms & boundaries1 section · depth on demand

Mechanics

Automation input documentation is part of the interface contract, not prose that can safely drift away from runtime validation. For every input, documentation should state canonical name, purpose, type/shape, required or optional status, default behavior, allowed/range/pattern constraints, units, sensitivity, source/precedence and at least one representative example. A machine-readable schema can anchor many of those fields and enable generated/reference documentation, but semantic prerequisites and operational consequences still need human explanation. Documentation must also distinguish omitted, null/empty and explicit default values when runtime behavior differs. For nested objects or lists, document element structure and stable identifiers instead of relying on an untyped 'JSON blob' description. The reader should be able to predict what validation will accept before invoking the automation.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Lifecycle

Version documentation with the automation/input schema and make interface changes part of normal code review. Where feasible, generate tables/examples from the same schema metadata the validator consumes so names and types cannot diverge silently. Mark deprecated inputs and their replacement, define removal windows, and keep old examples out of the primary path once they stop validating. Secret inputs should explain how to reference/provide the secret without ever showing a real value. If defaults are environment-dependent or computed, document the selection rule rather than a misleading fixed value. Add documentation checks to CI: every example should parse and validate, every required schema property should appear in the reference, and undocumented inputs should fail the quality gate.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docJSON Schema 2020-12 / automation documentation 2020-12/current

Authoritative/upstream documentation reviewed for bounded claims in Automation Documentation > Inputs. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://json-schema.org/specification · confidence 94%
Embedded reference data

Quick lookup tables

Automation Documentation → Inputs · operational reference

Context-specific ownership, verification, output and failure-boundary lookup for Automation Documentation → Inputs.

LayerAutomation Documentation → Inputs operational reference
Context identityJSON Schema 2020-12 / automation documentation + exact revision/input/target identity
Persistent intentVersioned contract/configuration with explicit ownership and prerequisites
VerificationValidate inputs/read current state → exercise bounded operation → independent target read-back
Output contractPreserve structured status/IDs/properties before human formatting
Failure boundarySeparate source/input/engine/controller execution from downstream target outcome
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

The most useful documentation output is a structured reference table or generated schema view plus validated examples. Show types and defaults explicitly and use code blocks that can be copied without hidden placeholders that accidentally look literal. Validation error examples should identify field path and rule without exposing secrets. Documentation build/CI should report orphaned schema properties, undocumented fields, invalid examples and stale/deprecated references as actionable failures. For generated docs, include the schema/application version so readers can tell which runtime contract is represented. A green docs build shows consistency with the declared schema, not production success, so keep operational verification separate. This output discipline turns documentation quality into a reproducible contract rather than a manual spot check.

Confirmation

Confirm action

Continue?