Skip to content

feat: vibe-coded PoC openapi-generator with document grounding and tab ai orchestration spec - #99

Draft
ZhongpinWang wants to merge 8 commits into
mainfrom
poc-openapi-generator
Draft

feat: vibe-coded PoC openapi-generator with document grounding and tab ai orchestration spec#99
ZhongpinWang wants to merge 8 commits into
mainfrom
poc-openapi-generator

Conversation

@ZhongpinWang

@ZhongpinWang ZhongpinWang commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

@mwien Vibe-coded solution using openapi-generator to give us some feeling about this generator. See the generated document grounding under document_grounding_generation and tab_ai_orchestration folders.

The extensions x-sap-cloud-sdk-... are supported via some workarounds in the preprocess_spec.py.

Demonstrated custom template.

Try to unify usage with generate.py with our generators in JS and Java SDK.

You can also find some sample code for these two services.

@ZhongpinWang
ZhongpinWang requested a review from alpkom as a code owner August 28, 2026 10:08
@ZhongpinWang
ZhongpinWang marked this pull request as draft August 28, 2026 10:09
@ZhongpinWang
ZhongpinWang requested a review from mwien August 28, 2026 10:09
@mwien

mwien commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

We would probably use httpx instead of urllib3 (there is an option for that). And then set supportHttpxSync to true to also get sync requests?

@ZhongpinWang

ZhongpinWang commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

We would probably use httpx instead of urllib3 (there is an option for that). And then set supportHttpxSync to true to also get sync requests?

Yes you are right, I was a bit in a rush and it contained quite some bugs.

Some updates since last Friday:

  1. Now use httpx. proxy_client provides only all the headers (although it still is used for fetching auth tokens under the hood to set the correct Authorization header)
  2. I also added sync support to the config. Yes later we will support both with httpx. I don't know when httpx2 will be an option, haven't investigated.
  3. The sap openapi generator is just a wrapper with some customization written in python code. The script can be called from other packages with some configuration json. The Java OpenAPI generator actually supports method renaming as a configuration, so we only need to provide a list of mapping from operationId to the custom naming we want.
  4. Aligned the options and cli interface a bit to the JS SDK generator.

All vibe coded of course to just have some feeling and see if any blockers. But overall this is the idea.

@ZhongpinWang ZhongpinWang changed the title feat: PoC openapi-generator with document grounding spec feat: vibe-coded PoC openapi-generator with document grounding spec Aug 31, 2026
…tion sample code

- Merge origin/main (sample-code server structure with hyphen directory)
- Add document_grounding_generation.py and tab_ai_orchestration.py to sample-code/
- Update sample-code/sample_code/server.py with routes for the two new modules
- Remove old sample_code/ directory (underscore) in favor of main's sample-code/ structure
- Resolve pyproject.toml and uv.lock conflicts using main's version
@ZhongpinWang ZhongpinWang changed the title feat: vibe-coded PoC openapi-generator with document grounding spec feat: vibe-coded PoC openapi-generator with document grounding and tab ai orchestration spec Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants