Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve swagger docs #449

Merged
merged 27 commits into from
Jul 22, 2024
Merged

Improve swagger docs #449

merged 27 commits into from
Jul 22, 2024

Conversation

frenchy64
Copy link
Contributor

@frenchy64 frenchy64 commented Jul 8, 2024

https://github.com/advthreat/iroh/issues/8946

Via flanders changes, adds examples to the json docs and swagger metadata.

We reuse :default to populate examples here. This has undesirable effects on the documentation. I reviewed the existing documentation around defaults, and many were not appropriate for user-facing docs. The closest to useful was that tlp defaults to green, but this is configurable in CTIA so that is debatable.

Instead of developing another flanders feature, I disabled default values from printing in the docs. We might want to revisit this if we actually use defaults in a user-facing way (not just generating examples).

@yogsototh
Copy link
Contributor

yogsototh commented Jul 10, 2024

For the build perhaps you could deploy a SNAPSHOT version in clojars and use this one? Perhaps lein-git-down does not work in the CI as one would expect.

Copy link
Contributor

@yogsototh yogsototh left a comment

Choose a reason for hiding this comment

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

LGTM!

src/ctim/schemas/common.cljc Show resolved Hide resolved
Comment on lines 6 to 7
[flanders.schema :as fschema]
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
[flanders.schema :as fschema]
)
[flanders.schema :as fschema])

@frenchy64 frenchy64 merged commit 795a474 into master Jul 22, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants