Folder contains scripts, generators and other files required to generate Golang SDK
Tools provides required scripts and infrastructure for generating source code for OpenAPI generator project. Typically a SDK is generated by:
- Fetching OpenAPI file from different sources
- Running transformation) that will process OpenAPI file to simplify outputs of the generated SDKs
- Generating SDK source code
- Validation and linting for generation process
config
- OpenAPI generator configreleaser
- release automation scripts and documentationtransformer
- OpenAPI transformation engine and it's documentation
flowchart TD
0[Atlas API Release] --> |Perdiodical Check|A[New Atlas OpenAPI file]
A[New Atlas OpenAPI file] -->|Generate Code and Docs| B[Generator Automation]
B -->|Create| GithubPR[Github APIBot PR]
GithubPR -->|Manual Review| D[APIBot PR Approval and Merge]
D -->|Trigger| C[SDK Release Automation]
C -->|Release SDK| End[Release Tag]
-
Fetch File: We Periodically Fetch for the Changes in the Public OpenAPI file
-
Generate Code and Docs: The next step involves generating code and documentation based on the contents of the OpenAPI file. This is an automated process done by github actions.
-
Create PR: After the code and documentation are generated, a pull request (PR) is created on GitHub. The purpose of this PR is to visualize all changes before merging them to the main branch.
-
Manual Review: The pull request undergoes manual review by by the assigned team. The reviewers check the changes, verify their correctness, and assess their impact based on the PR description.
-
APIBot PR Approval and Merge: If the manual review is successful, and the changes are approved, the pull request is merged into the main repository.
-
Trigger SDK Release Automation: The successful merge of the pull request triggers the next step, which is the SDK Release Automation process.
-
Release SDK: SDK is released by creating Github Release.
make fetch_openapi
make clean_and_generate
See Contributing guide