Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
.PHONY: install docs lint license-check test test-integration test-pkg test-pkg-integration
.PHONY: install generate docs lint license-check test test-integration test-pkg test-pkg-integration

install:
uv sync --all-packages --all-extras

GENERATE_PACKAGES := $(dir $(shell grep -rl "^generate:" packages/*/Makefile 2>/dev/null))

generate:
$(foreach pkg,$(GENERATE_PACKAGES),$(MAKE) -C $(pkg) generate;)

docs:
uv run sphinx-apidoc -e -M -f -T \
-o docs/sphinx/_autogen/base \
Expand Down
7 changes: 7 additions & 0 deletions openapitools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.25.0"
}
}
12 changes: 12 additions & 0 deletions packages/gen/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
PKG_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
SPECS := $(wildcard $(PKG_DIR)specs/*)

.PHONY: generate

generate:
$(foreach spec,$(SPECS), \
uv run --package sap-openapi-generator sap-generate \
-i $(spec) \
-o $(PKG_DIR) \
-s $(spec)/options-per-service.json; \
)
Loading
Loading