✍️ Writing

Spectral OpenAPI Lint Map from Spec Inventory (No Invented Rule Severities) with example still

Turn a Spectral OpenAPI spec inventory into a lint map only. No invented rule severities, MUST counts, or API keys beyond the inventory.

0.0
0Reviews
P
September 14, 2026

Prompt

Act as a Spectral OpenAPI lint mapper who only uses a pasted spec inventory (path stubs, operation cues, rule notes). You write a OpenAPI lint map the inventory already supports. You do not invent rule severity scores, MUST counts, API keys, or secret bearer tokens. This is not a live Spectral CI gate and not an API security audit.
You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs.

Inputs:
- Spec inventory (path stubs, operation cues, rule notes) I lock: [Inventory]
- Spectral / OpenAPI version notes I lock: [Version]
- Project or workspace label I may quote (or UNKNOWN): [Workspace]
- Required names I may quote (or UNKNOWN): [SpecNames]
- Path keys already present (or UNKNOWN): [PathKeys]
- Operation cues already present (or UNKNOWN): [OpCues]
- Rule notes already present (or UNKNOWN): [RuleNotes]
- Words I must not use: [Banned]
- What I must never invent (rule severity scores, MUST counts, API keys, or secret bearer tokens): [Never]
- Output format: [Format]
- Language: [Lang]

Generate:
1. Honesty ledger: Inventory nouns, Version, Workspace, SpecNames, PathKeys, OpCues, RuleNotes, Lang. Forbidden: invented rule severity scores, MUST counts, API keys, or secret bearer tokens. Banner: this is not a live spectral ci gate and not an api security audit.
2. Openapi lint map table: one row per Inventory path stub or operation cue. Missing rule notes write NOT IN INPUTS. Use Spectral rulesets, OpenAPI paths, and operationId language when Inventory supports it. Quote PathKeys and OpCues only when present. Never print rule-severity VALUES not in Inventory.
3. Spec name set: only names in SpecNames. Unnamed items stay NOT IN INPUTS. Never print MUST-count or API-key VALUES not in Inventory.
4. Version lock: print Version. Refuse Spectral features newer than Version if Version is named.
5. Refuse list: inventing rule severity scores, inventing MUST counts, inventing API keys, inventing secret bearer tokens.
6. Compliance pass: quote Banned and Never hits. Cut them. Format as Format.

Constraints:
- Map from Inventory only. No invented rule-severity VALUES. Teach Spectral OpenAPI lint mapping, not a generic Redocly or Stoplight swap.
- Honor Version. No emojis.

Instructions

Replace every [bracket] with your details before running. Works on ChatGPT, Claude, and Gemini.

Generated Output

This image was generated using the prompt above.

Spectral OpenAPI Lint Map from Spec Inventory (No Invented Rule Severities) with example still - Result

Examples

Example Input

Inventory: path Harbor Quay /quays/{id} as pasted op cue GET as pasted rule note operation-operationId as pasted; path River Ops /berths as pasted op cue POST as pasted. Severity invent NONE. MUST count invent NONE.
Version: Spectral 6 OpenAPI 3.1 as pasted (do not invent unreleased AI ruleset)
Workspace: Harbor Quay API Spec Desk as pasted
SpecNames: /quays/{id} as pasted; /berths as pasted. Bearer UNKNOWN.
PathKeys: /quays/{id} as pasted; /berths as pasted. /webhooks UNKNOWN.
OpCues: GET as pasted; POST as pasted. DELETE UNKNOWN.
RuleNotes: operation-operationId as pasted. info-contact NOT IN INPUTS.
Banned: guaranteed pass, severity invent, MUST invent, token invent
Never: invent rule severity scores, invent MUST counts, invent API keys, invent secret bearer tokens
Format: ledger + table + specs + version + refuse + compliance
Lang: English

Example Output

1. Ledger. Inventory: path Harbor Quay /quays/{id} op cue GET rule note operation-operationId; path River Ops /berths op cue POST. Severity invent NONE. MUST count invent NONE. Version Spectral 6 OpenAPI 3.1. Workspace Harbor Quay API Spec Desk. SpecNames /quays/{id}; /berths; Bearer UNKNOWN. PathKeys /quays/{id}; /berths; /webhooks UNKNOWN. OpCues GET; POST; DELETE UNKNOWN. RuleNotes operation-operationId; info-contact NOT IN INPUTS. Lang English. Banner: not a live Spectral CI gate; not an API security audit. Forbidden: invented rule severity scores, MUST counts, API keys, secret bearer tokens, guaranteed pass, severity invent, MUST invent, token invent.

2. OpenAPI lint map.
1. Harbor Quay /quays/{id} | PathKeys /quays/{id} as pasted | OpCues GET as pasted | RuleNotes operation-operationId as pasted | severity NONE | MUST count NONE | Spectral OpenAPI lint map only.
2. River Ops /berths | PathKeys /berths as pasted | OpCues POST as pasted | RuleNotes beyond operation-operationId NOT IN INPUTS | severity NONE | MUST count NONE.
Bearer UNKNOWN so write Bearer NOT IN INPUTS. /webhooks not invented beyond PathKeys.

3. Spec name set. /quays/{id}; /berths as SpecNames. Bearer UNKNOWN so write Bearer NOT IN INPUTS. No rule-severity VALUES beyond Inventory. No third path invented.

4. Version lock. Spectral 6 OpenAPI 3.1 as pasted. Unreleased AI ruleset not used. Extends packs NOT IN INPUTS.

5. Refuse. Severity invent: refused. MUST invent: refused. API-key invent: refused. Bearer invent: refused. Guaranteed pass: refused.

6. Compliance. Banned hits none. Format ledger+table+specs+version+refuse+compliance. Gaps: Bearer decision, /webhooks PathKeys, DELETE OpCues, info-contact RuleNotes, Extends packs list if any.

Missing-data policy: if a field was blank, write NOT IN INPUTS rather than guessing. Lock any tool version named in Inputs; if unnamed, write unknown. No invented testimonials, star ratings, or press logos. If legal, clinical, insurance, HR, education-plan, or veterinary content appears, add a one-line not-advice and de-identify banner. Quote banned-word hits and cut them. End with a gaps list of five bullets the user still owes you. Character and byte caps in the job are hard; print counts when relevant. Refuse to backfill DOIs, exam dumps, PHI, PII, or compensation promises not in Inputs.

Reviews (0)

Please login to leave a review.
Loading reviews...