You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Governance runs into friction when it meets the size and the shape of an OpenAPI document, and likely the same is true for AsyncAPI, Arazzo and other specifications.
Size is how big the document is: bytes on disk, the number of paths and operations, how many schemas there are and how deep they nest.
Shape is how the document is put together: what's inline and what's in components, what's split across files, and what gets reused.
Both affect governance in two ways:
Performance: how long linting takes, and whether it finishes at all. A 2.7 MB OpenAPI document took 62 seconds through the MCP server, past the 60-second timeout most clients use (openlint/mcp#14).
Precision: whether a rule fires where it should, once, against the right thing. A rule written for inline schemas behaves differently on components, and a reference across files raises the question of where it resolves.
We want to research and discuss the size and shape of OpenAPI documents, and write guidance on them, including:
size: when a document gets too big to lint, read or review;
inline schemas and properties vs components;
external references, and how documents compose across files (for example, which document a security scheme is resolved from);
modularity: one document or many;
reuse;
consistency: the same thing expressed the same way across a document, or across many.
The goal is linting that stays fast and precise as part of governance, with rules that fit the shape of the document they run on.
There's no single right shape. Engineers, architects and designers have strong and different preferences. Some companies hold that there must only ever be one OpenAPI document; others split theirs across hundreds of files. How a company builds its APIs, and how it governs them, shapes its documents. So the guidance probably won't be one recommendation. More likely it's a few named shapes, each with rules that check for it and its own limits, that an organization chooses from.
We'd like your feedback:
What shapes do your OpenAPI documents take, and why?
Where has size or shape slowed linting down or made rules misfire?
Which questions about how documents compose would you like settled by the OpenAPI specification itself, rather than by tools?
Would named shapes, as optional rulesets, be useful to you?
Raised at Office Hours #8 (performance on the MCP server, and Mike Kistler on how split documents compose). Related: performance benchmarks, and the schema cache in openlint#39.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Governance runs into friction when it meets the size and the shape of an OpenAPI document, and likely the same is true for AsyncAPI, Arazzo and other specifications.
Both affect governance in two ways:
We want to research and discuss the size and shape of OpenAPI documents, and write guidance on them, including:
components;The goal is linting that stays fast and precise as part of governance, with rules that fit the shape of the document they run on.
There's no single right shape. Engineers, architects and designers have strong and different preferences. Some companies hold that there must only ever be one OpenAPI document; others split theirs across hundreds of files. How a company builds its APIs, and how it governs them, shapes its documents. So the guidance probably won't be one recommendation. More likely it's a few named shapes, each with rules that check for it and its own limits, that an organization chooses from.
We'd like your feedback:
Raised at Office Hours #8 (performance on the MCP server, and Mike Kistler on how split documents compose). Related: performance benchmarks, and the schema cache in openlint#39.
All reactions