Build an operation inventory
Record method, host, path, purpose and where the operation was found. Read request builders, annotations, serializers and native call sites alongside captures. A capture shows calls made during that run; compare it with code paths, account roles and app screens before marking coverage complete.
Use path parameters for changing identifiers and retain the real query encoding. Record which request headers are constant and which come from login, a previous response or a signing step.
Keep presence separate from null
A JSON property can be missing, present with null, or present with a value. The schema's required list controls whether it must be present. Its type controls the values it accepts. A required property can allow null; an optional property can reject null.
In OpenAPI 3.1, type: ["string", "null"] allows those two value types. Add the property to required separately if it must be present. Kotlin nullability and serializer annotations are leads to verify against serialization rules and responses. The JSON Schema references explain required properties and null values.
Record response variants
Compare success, empty-result and error responses. Record pagination fields, units for dates and numbers, and identifiers that arrive as strings. A field seen in one response is evidence of that example; use the code and more test cases to decide its required status.
Keep small redacted examples beside the schema. Each example should state the app version, operation and conditions that produced it. This makes a later mismatch easier to trace.
Describe authentication and computed headers
Define security schemes under components.securitySchemes and apply them through security. Model bearer tokens with HTTP bearer authentication. Cookie authentication can use an apiKey scheme with in: cookie; ordinary cookies also have cookie parameters.
Document the inputs and timing for computed signatures and other changing values. A generator needs client code or a hook that supplies them; declaring a header alone does not build that behavior. The OpenAPI 3.1.1 specification defines the parameter, schema and security objects.
Check the generated client
Validate the document, then test client operations against known inputs and responses. Check login, token refresh, pagination and dependent calls as workflows. For state-changing operations, use controlled test data and check the resulting state before repeating the call.
A successful example proves that tested path and input. Maintain a coverage list for operations and conditions still to check. Deliver the same endpoint set in Python, JavaScript/TypeScript, Postman and the API documentation. The full APK service covers that complete handoff.
Reviewed 19 October 2026 · SReverse research desk