Skip to content

docs: add comprehensive usage guide to README#33

Open
halotukozak wants to merge 7 commits intomasterfrom
docs/usage-guide
Open

docs: add comprehensive usage guide to README#33
halotukozak wants to merge 7 commits intomasterfrom
docs/usage-guide

Conversation

@halotukozak
Copy link
Copy Markdown
Member

Summary

  • Add Generated Client Usage section with dependencies, client creation, and auth examples
  • Document Bearer, API Key, Basic, and no-auth constructor patterns
  • Add HttpResult/Either error handling guide with HttpError subtype table
  • Add serialization setup with SerializersModule for polymorphic types
  • Add multi-spec configuration example

Test plan

  • Verify README renders correctly on GitHub
  • Verify code examples are accurate

🤖 Generated with Claude Code

- Add Generated Client Usage section with dependencies, client creation, auth examples
- Document Bearer, API Key, Basic, and no-auth constructor patterns
- Add HttpResult/Either error handling guide with HttpError subtype table
- Add serialization setup with SerializersModule for polymorphic types
- Add multi-spec configuration example

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 25, 2026 12:55
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 25, 2026

Coverage Report

Overall Project 96.03% 🍏
File Coverage
ApiResponseGenerator.kt 92.42% 🍏

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new “Generated Client Usage” section to the project README to document how consumers should add dependencies, instantiate generated clients, handle errors, and configure serialization when using the Gradle plugin’s generated Ktor clients.

Changes:

  • Document runtime dependencies and client instantiation patterns.
  • Add sections for authentication, request/response handling, error handling, and serialization setup.
  • Include an example for multi-spec Gradle configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Fix inaccuracies in generated client documentation to match actual
code: use tag-derived class names (PetsApi), Bearer-only auth,
Raise-based error handling, HttpErrorType enum, and correct JSON config.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

halotukozak and others added 5 commits April 2, 2026 18:32
Merge Authentication info into Creating the Client section to eliminate
duplicate code example. Remove Multi-Spec Configuration section already
covered in Usage. Fix ApiResponseGenerator KDoc listing 3 enum values
instead of 4 (missing Redirect).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add three new README sections:
- Supported OpenAPI Features: type mapping table, composition/polymorphism
  support matrix, parameter and request body support
- Generated Code Structure: output layout tree, model/api package contents,
  Gradle task reference
- Customization: package overrides, Ktor engine selection, JSON configuration

Remove redundant Serialization Setup section (now covered by Customization).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rect Arrow version

Testing revealed two issues:
- Generated code uses Kotlin context parameters, requiring
  -Xcontext-parameters compiler flag (was undocumented)
- Arrow version 2.1.2 missing arrow.core.raise.context.raise,
  updated to 2.2.1.1 matching the actual project dependency

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
# Conflicts:
#	core/src/main/kotlin/com/avsystem/justworks/core/gen/shared/ApiResponseGenerator.kt
@halotukozak halotukozak self-assigned this Apr 2, 2026
@halotukozak halotukozak requested a review from mzielu April 2, 2026 16:53
@halotukozak halotukozak added this to the 0.0.2 milestone Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants