Conversation
This creates postman collection from unit tests
this extract controllers docs into priv/static/docs.json
Contributor
Author
mtuchi
commented
Dec 5, 2025
Contributor
Author
There was a problem hiding this comment.
This is partly AI generated (80% ish). I am not sure what most of these codes mean but it does the job.
This is how i extract @moduledoc and @doc comments from API Controllers like workflows_controller.ex
The goal is to link these docs as description in postman collection requests
mtuchi
commented
Dec 5, 2025
Contributor
Author
There was a problem hiding this comment.
This 100% AI generated, I am not sure how useful they are. I had to ask help from AI because my formatter kept breaking when i was running mix compile.docout, Mostly the bug was related to data types and empty functions.
The issue occurred because docout is marked as runtime: false in the dependencies
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.

Description
This PR does 2 things,
priv/static/postman.json@moduledoc, @doccomments in API controllers inpriv/static/docs.json[Just few of them for proof of concept]Validation steps
priv/static/postman.jsonmix compile.docout. Once it's done, seepriv/static/docs.jsonAdditional notes for the reviewer
The original issue request was to port lighting API docs to docs.openfn.org and See OpenFn/docs#715. Although this PR does not generate a Open API spec that can be used in docs.openfn.org, This change is 1 step closer towards that direction.
AI Usage
Please disclose how you've used AI in this work (it's cool, we just want to know!):
You can read more details in our Responsible AI Policy
Pre-submission checklist
:owner,:admin,:editor,:viewer)