OpenAPI SDK readiness
Swagger Petstore - OpenAPI 3.0 spec score
Octri scored the public spec at https://petstore3.swagger.io/api/v3/openapi.json for what a code generator can do with it. This is a reading of the document, not a grade of the API.
19 operations · 6 models · 3 tags · OpenAPI 3.0.4
Scored 14 September 2026 · fingerprint 00441c05add6… · spec version 1.0.27
Document last changed 14 September 2026.
Where the points went
Every rule, heaviest first, with what it cost this document and how much of the surface it touched. Open a row for the locations.
Successful responses declare a schema2.00.8 lost5 of 19 operations
Without a response schema every method returns `unknown`/`any`, so callers get no types and no autocompletion.
DELETE /pet/{petId}`deletePet` declares a success response with no schema, so the generated method returns an untyped value.DELETE /store/order/{orderId}`deleteOrder` declares a success response with no schema, so the generated method returns an untyped value.GET /user/logout`logoutUser` declares a success response with no schema, so the generated method returns an untyped value.PUT /user/{username}`updateUser` declares a success response with no schema, so the generated method returns an untyped value.DELETE /user/{username}`deleteUser` declares a success response with no schema, so the generated method returns an untyped value.
Shared models live in components and are $ref'd2.0Clean19 operations clean
Inline object schemas become anonymous per-operation types. The same model inlined in 20 operations generates 20 near-identical types instead of one.
Generated public names do not collide2.0Clean19 operations clean
When authored identifiers collapse to the same shared public name, the generator must silently rename one method; callers otherwise cannot predict the SDK surface from the spec.
Every path placeholder has a parameter1.5Clean19 operations clean
An undeclared `{id}` placeholder cannot become a typed method argument, so the generated request path is incomplete or uncompilable.
Every operation declares an operationId1.0Clean19 operations clean
Without one the generator synthesizes a name from the path, which changes whenever the path does. That is a silent breaking change for callers.
operationIds read as method names1.00.4 lost5 of 19 operations
The id becomes the method name. `ActionsActionsGet` generates `client.actions.actionsActionsGet()`; `getActions` generates `client.actions.get()`.
GET /pet/findByStatus`findPetsByStatus` reads better as `getFindPetsByStatus` at the call site.GET /pet/findByTags`findPetsByTags` reads better as `getFindPetsByTags` at the call site.POST /store/order`placeOrder` reads better as `createPlaceOrder` at the call site.GET /user/login`loginUser` reads better as `getLoginUser` at the call site.GET /user/logout`logoutUser` reads better as `getLogoutUser` at the call site.
Operations carry a summary or description1.0Clean19 operations clean
Operation prose becomes the method's doc comment, the text an IDE shows on hover.
Request bodies are documented1.00.3 lost2 of 19 operations
Body field descriptions become the doc comments on generated parameters; without them the SDK ships undocumented arguments.
POST /pet/{petId}/uploadImage`uploadFile` has an undocumented request body, so every generated parameter for it will be comment-free.POST /user/createWithList`createUsersWithListInput` has an undocumented request body, so every generated parameter for it will be comment-free.
Failure responses are declared1.0Clean19 operations clean
Declared error schemas become typed errors. Without them every failure surfaces as an untyped generic error.
Operations are tagged1.0Clean19 operations clean
Tags drive namespacing. Untagged operations fall back to a path segment, producing lopsided or `misc` namespaces.
No duplicate or equivalent paths1.0Clean13 paths clean
Paths differing only in parameter NAME are the same route to a server; the generated SDK ends up with two methods that call the same endpoint.
Authentication is described1.0CleanDeclared
Security schemes generate the SDK's auth configuration. A spec without them produces a client with no way to authenticate.
Parameters explain their purpose0.750.18 lost1 of 19 operations
Parameter descriptions become IDE hints on generated method arguments; bare names force SDK users back to the API reference.
DELETE /pet/{petId}#header:api_key`api_key` has no description, so the generated argument has no IDE guidance.
A server URL is declared0.5CleanDeclared
Without a server URL the generated client must ship with an empty or placeholder base URL, adding setup work and easy production misconfiguration.
What 8.3 means for an SDK
A strong reading, and the three rules that decide most of it.
A generator has what it needs here: typed methods, named models and doc comments that say something. What is left is polish, and it can wait until after the first release.
Three rules carry six of the 10 points between them. On this document they took 0.82.
−0.8
Successful responses declare a schema
5 of 19 operations
Clean
Shared models live in components and are $ref'd
19 operations clean
Clean
Generated public names do not collide
19 operations clean
What to change first
Every rule that deducted, in the order they cost.
Successful responses declare a schema
Give the success response a schema, or a $ref to one in components. A 204 needs nothing. Inside Octri this one has a one-click fix.
operationIds read as method names
Name the id for the action, not the route. The audit suggests one per operation and can apply it. Inside Octri this one has a one-click fix.
Request bodies are documented
Describe the body, or the fields inside it. Field-level prose is the one that reaches the SDK's arguments. Inside Octri this one has a one-click fix.
Parameters explain their purpose
Describe what the parameter does and what a valid value looks like. One line each. Inside Octri this one has a one-click fix.
The spec at petstore3.swagger.iois public. Octri keeps the `info` block, the score, and up to five sample finding locations per rule. The document itself is not stored and is not served from here. The audit predicts what an SDK generator can do with the description; it is not a security review, an uptime measurement or a critique of the API’s design. This page is not affiliated with Swagger Petstore - OpenAPI 3.0.