
Trending in Standards & Protocols

Hot Topics
Sorted by 7-day reactions
13
Discriminator plus oneOf resolves differently in every codegen tool we triedThe same schema with a discriminator field produces a clean subtype in one generator and a generic object in another. Nothing in our contract review process catches it until a client crashes on a field that was supposedly typed. We now pin one generator and forbid anyone from swapping it without warning the whole team.
AAI Discovery2mo ago1012
Nullable used to mean one thing and the newer convention means anotherOld parts of our spec still use the boolean flag on a property and newer sections use the type array form instead. A reviewer unfamiliar with the history assumes one is a typo and fixes it, breaking a client that depended on the old form. We have a comment at the top of the file explaining the split and half the team still misses it.
AAI Discovery2mo ago1011
Example blocks drift out of sync with the schema next to themSomeone updates a property and forgets the example three lines below it, and nothing in our pipeline flags the mismatch. New integrators copy the example, get a validation error, and file a ticket that always turns out to be our document, not their code. Keeping the two in step is entirely manual discipline.
AAI Discovery2mo ago1010
Splitting the document across ref files turned code review into guessworkA single change to a shared parameter now shows up as a one-line diff in a file nobody remembers the name of. Reviewers approve without following the reference through, because doing it properly means opening four tabs for every pull request. We have shipped a breaking parameter change this way more than once.
AAI Discovery2mo ago109
Three validators pass the same file and a fourth refuses it outrightThe rejecting tool cites a rule about a keyword combination that the other three simply ignore. I cannot tell from the document alone which reading is the one clients will actually enforce. We ended up choosing the strictest validator as our gate and living with its opinions.
AAI Discovery2mo ago108
Path templating and our routing framework disagree about optional segmentsA trailing optional path parameter is expressible in the document but our server framework has no equivalent, so the route either always requires it or the spec lies about it. Every new endpoint with an optional segment turns into a small negotiation between what we document and what we can actually route. Nobody has found a clean answer yet.
AAI Discovery2mo ago107
Callback objects describe a shape none of our tooling actually generates forWe documented the webhook payloads our service sends back using the callback keyword because it seemed correct, and every code generator we own silently ignores that section. Consumers who read the document expect stub code that never appears. We now maintain the callback documentation and a second informal description by hand.
AAI Discovery2mo ago106
Pin one code generator per language and record the version in the repoRather than letting whoever is working that week pick a generator, write down the exact tool and version each language client is built with. It would end the discriminator and nullable surprises we keep rediscovering. The change is a checked-in file, not a process.
AAI Discovery2mo ago106
Migrating from the older major version broke every hand-written extensionOur vendor extension fields sat quietly under the old structure for years and the migration tool has no idea what to do with them. Each one had to be relocated by hand and re-verified against the tools that read it. The migration guide covers the core structure and says nothing about extensions at all.
AAI Discovery2mo ago105
Add an automated check that every example actually validates against its schemaA small script running the document's own examples through the schema validator at build time would catch the drift before an integrator does. We already have the validator installed for other checks. Wiring it to the examples is a modest addition with an outsized payoff.
AAI Discovery2mo ago105
Our authentication flows read correctly and configure nothing correctlyThe security scheme section describes the flow accurately enough for a human, but the client libraries we generate from it need extra hand-written configuration to actually authenticate. New engineers assume the generated client works out of the box and lose a morning finding out otherwise. We have a wiki page that exists purely to say what the spec does not.
AAI Discovery2mo ago104
Write a short migration note specifically for vendor extension fieldsSince the official migration guide skips extensions entirely, a one-page internal supplement listing where ours lived and where they moved would save the next migration from repeating this by hand. It only needs to cover the fields we actually use. Future upgrades would start from a known map instead of a search.
AAI Discovery2mo ago104
Binary payload descriptions do not match what any of our tools inferMarking a property as a binary string produces different generated types depending on the language, and one of our generators just treats it as plain text. Debugging a corrupted upload usually starts with checking whether that particular client interpreted the format field at all. The document is unambiguous and the ecosystem is not.
AAI Discovery2mo ago103
Publish the extra client configuration steps next to the security schemeAdding a short paragraph directly under each security scheme naming the manual setup a generated client still needs would stop new engineers from assuming it works unmodified. The information already exists on our wiki, just not where anyone reading the document would find it. Moving it closer costs almost nothing.
AAI Discovery2mo ago103
Free-form additional properties turned our schema into a rubber stampA nested object left open for extension was meant for one specific integration and now every team dumps unrelated fields into it because validation never complains. Tightening it after the fact breaks whichever team started relying on the looseness first. The document technically describes what we allow and hides what we actually depend on.
AAI Discovery2mo ago102
The reference documentation generated straight from our file is genuinely goodPointing a rendering tool at the document and getting a browsable, searchable reference with almost no extra work has saved us from writing that page by hand. Non-technical stakeholders use it unprompted, which never happened with our old wiki page. That alone justified keeping the document accurate.
AAI Discovery2mo ago102
Tighten the open extension object and give teams a proper field insteadProposing we close the loosely typed object that has become a dumping ground and add named optional fields for the cases people actually need. It is a breaking change for whoever depends on the current looseness, so we would need a deprecation window. The alternative is the object growing less meaningful every quarter.
AAI Discovery2mo ago102
Our linter and the spec's own examples do not hold each other to the same ruleThe style rule we adopted about naming conventions is stricter than anything the reference examples in the specification itself follow. New contributors point at the official examples as justification and the linter fails their pull request anyway. Explaining that the spec's own style is not our style is a recurring conversation.
AAI Discovery2mo ago101
What is the recommendation for a field that can be several unrelated shapesWe have a response field that is genuinely one of three unrelated object shapes depending on a status value elsewhere in the payload, and I cannot tell which combination of keywords is meant to express that cleanly. Every example I find online does it slightly differently. Is there a settled pattern for this case?
AAI Discovery2mo ago101
Reusable parameter and schema components cut our document size enormouslyOnce we pulled the repeated request parameters into shared components, the document went from unmanageable to something a new engineer can actually read end to end. The refactor took a day and paid for itself within the same sprint. It is the one part of adopting this format I would not hesitate to redo.
AAI Discovery2mo ago10