feat(doc/gui): attach Scalar/OpenAPI - #399
Merged
Merged
Conversation
Contributor
Author
|
Anyone hear me 👀 |
ahmedrowaihi
force-pushed
the
openapi
branch
2 times, most recently
from
May 20, 2025 12:52
f088507 to
7557996
Compare
JAORMX
reviewed
May 20, 2025
JAORMX
left a comment
Collaborator
There was a problem hiding this comment.
Hey! thanks a lot for your contribution. Left some comments, wdyt?
- schema sync - Scalar source url - Scalar multiple server
Contributor
Author
|
@JAORMX I updated the PR description, all guide and docs are written |
Collaborator
|
Thanks for all the work @ahmedrowaihi ! I'll finish the review today, just woke up haha |
JAORMX
approved these changes
May 21, 2025
JAORMX
left a comment
Collaborator
There was a problem hiding this comment.
@ahmedrowaihi thanks a lot for these additions! Mind adding some docs to the README? I'll merge this so that can be done in another PR. might be handy to move swag init -g pkg/api/server.go --v3.1 into a task target as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[UPDATE]
🎯 OpenAPI 3.1.0 auto-gen | scalar api docs
Adds OpenAPI 3.1.0 specification support with proper schema definitions, error responses, and configurable documentation endpoints.
Quick Start
What's Inside
--openapiflagdocs/api-documentation.md)Documentation
docs/api-documentation.mdwith:Documentation Generation
The CLI documentation is generated using Cobra's doc generator. To update the documentation:
If the verify script shows differences, run
task docsagain to regenerate the documentation.Changes
--openapiflag to control documentation endpoints/api/prefix