Skip to content

Commit e973322

Browse files
Add makefile
1 parent 90cb50c commit e973322

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Java weirdness - see https://github.com/OpenAPITools/openapi-generator/issues/11763#issuecomment-1098337960
2+
generate: ## Generate the SDK from our public openapi spec
3+
_JAVA_OPTIONS="--add-opens=java.base/java.lang=ALL-UNNAMED \
4+
--add-opens=java.base/java.util=ALL-UNNAMED" \
5+
openapi-generator generate -i spec/public-api.yaml \
6+
-g python \
7+
-o ./generated
8+
poetry run datamodel-codegen --input spec/public-api.yaml --output generated/model.py

0 commit comments

Comments
 (0)