Skip to content

docs: replace example document payloads with synthetic data - #462

Merged
dodeja merged 6 commits into
mainfrom
docs/synthetic-examples
Oct 19, 2026
Merged

dodeja merged 6 commits into
mainfrom
docs/synthetic-examples

Conversation

@dodeja

@dodeja dodeja commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • docs: The document processing guide's example webhook payloads (draft and final HBL, ISF, MBL, delivery order, and the failed-extraction example) now use realistic-format, fabricated values. Companies are fictional, contacts use example.com/example.net and 555-01xx numbers, and addresses use invented streets. Container numbers use carrier owner codes with valid ISO 6346 check digits; BOL, booking, seal, PO, and file-name values are randomly generated in each carrier's format. Cargo figures, document dates, and resource IDs are also freshly generated. The JSON structure and value types of every example are unchanged.
  • chore(lint): .spectral.mjs imported a remote ruleset that no longer resolves, so spectral lint exited with an error before checking anything. It now extends the built-in spectral:oas recommended ruleset.

docs/openapi.json is not changed in this PR.

Verification

  • All 9 JSON blocks in the guide parse, and their key structure and value types match main exactly (scripted comparison).
  • npx mintlify@latest broken-links (isolated install from docs/) reports no broken links.
  • npx vp run check passes.
  • spectral lint --ruleset .spectral.mjs docs/openapi.json: before, the run aborted while loading the ruleset (exit 2, no results). After, it runs and reports 36 problems (2 errors, 34 warnings). The 2 errors are pre-existing spec issues (path-params on /vessels/{imo}, oas3-valid-media-example on POST /custom_fields) and are left for a separate change. CI does not run Spectral.
  • A rerunnable check confirms every example container number passes ISO 6346, every JSON example parses with an unchanged shape, and no replaced value reappears on the branch.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable defects were established.

Summary

Replaces document webhook examples with synthetic company names, contacts, addresses, and shipping identifiers. Changes .spectral.mjs to extend the recommended OpenAPI rules.

  • Document webhook examples now use clearly synthetic shipment details.
  • Spectral linting now uses the local recommended OpenAPI rules.

Reviews (1) · Last reviewed commit: "chore(lint): load the Spectral ruleset l..." · Reviewed by Greptile

dodeja and others added 2 commits October 18, 2026 13:17
The document processing guide's example webhook payloads now use
fictional companies, example.com contacts, 555-01xx phone numbers,
generic addresses, and placeholder BOL, booking, PO, seal, and
container values. Container numbers use a TSTU owner code with
check digits that do not validate. The JSON structure of every
example is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
.spectral.mjs imported a remote ruleset that no longer resolves, so
`spectral lint` exited before checking anything. Extend the built-in
spectral:oas recommended ruleset instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Oct 19, 2026 4:03am UTC

Request Review

@mintlify

mintlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
terminal49 🟢 Ready View Preview Oct 19, 2026, 4:02 AM

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T04:04:14.172391Z cf733f7 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@blacksmith-sh

This comment has been minimized.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4db8b3a9ed

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .spectral.mjs Outdated
@@ -1,2 +1,3 @@
import ruleset from 'https://stoplight.io/api/v1/projects/cHJqOjMxNg/spectral.js?branch_slug=feat%2Fcontainer-event-timestamps&token=0049d374-6767-468e-8313-d3f211429e84';
export default { extends: ruleset };
import { oas } from '@stoplight/spectral-rulesets';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Declare the imported Spectral ruleset dependency

A clean npm ci does not install @stoplight/spectral-rulesets because it is absent from both package.json and the authoritative lockfile, so loading this configuration fails with ERR_MODULE_NOT_FOUND before the documented Spectral lint command can inspect the OpenAPI file. Add the package as a root development dependency and update package-lock.json.

AGENTS.md reference: AGENTS.md:L11-L11

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 755b742 without adding a dependency. .spectral.mjs is replaced by .spectral.yaml containing extends: ["spectral:oas"]. That is a built-in alias the Spectral CLI resolves itself, so the ruleset has no import and nothing to install. AGENTS.md and the command list in .github/workflows/claude.yml now point at .spectral.yaml.

Verified from a clean git archive export with no node_modules: npx @stoplight/spectral-cli@6 lint --ruleset .spectral.yaml docs/openapi.json reports 36 problems (2 errors, 34 warnings), and its full output is byte-identical to the previous ruleset's output.

The JS ruleset imported @stoplight/spectral-rulesets, which the root
install does not provide. A YAML ruleset extending the built-in
spectral:oas alias needs no import, and the CLI resolves it itself.
Lint output on docs/openapi.json is unchanged (2 errors, 34 warnings).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dodeja
dodeja merged commit fa3b1f3 into main Oct 19, 2026
24 of 28 checks passed
@dodeja
dodeja deleted the docs/synthetic-examples branch October 19, 2026 04:08

This branch was successfully deployed

2 active deployments
Preview — cf733f7e Deployed Oct 19, 2026 by vercel[bot]
staging - docs — cf733f7e Deployed Oct 19, 2026 by mintlify[bot]
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