Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update java config, change Makefile #30

Merged
merged 1 commit into from
May 30, 2023
Merged
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
conekta-*/
openapitools.json
test-node/
.openapi-generator/
.openapi-generator/
.DS_Store
53 changes: 42 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,48 @@
API_README_VERSION_ID = 641deb4041d58005f2c45bf3
merge:
npx @openapitools/openapi-generator-cli generate -g openapi-yaml -i api.yaml -p outputFile=_build/api.yaml --skip-validate-spec
npx @openapitools/openapi-generator-cli generate \
-g openapi-yaml \
-i api.yaml \
-p outputFile=_build/api.yaml \
--skip-validate-spec

python:
npx @openapitools/openapi-generator-cli generate -i api.yaml -g python-nextgen -o conekta-python -c config-python.json
npx @openapitools/openapi-generator-cli generate \
-i api.yaml \
-g python-nextgen \
-o conekta-python \
-c config-python.json

java:
mkdir -p conekta-java && cp .openapi-generator-ignore conekta-java/.openapi-generator-ignore && \
npx @openapitools/openapi-generator-cli generate -i api.yaml -g java -o conekta-java \
-c config-java.json
mkdir -p conekta-java && \
cp .openapi-generator-ignore ct-conekta-java/.openapi-generator-ignore && \
npx @openapitools/openapi-generator-cli generate \
-i api.yaml \
-g java \
-o ct-conekta-java \
-c config-java.json \
--global-property modelTests=false

go:
npx @openapitools/openapi-generator-cli generate -i api.yaml -g go -o conekta-go -c config-go.json --global-property apiTests=false
npx @openapitools/openapi-generator-cli generate \
-i api.yaml \
-g go \
-o conekta-go \
-c config-go.json \
--global-property apiTests=false

ruby:
mkdir -p conekta-ruby && cp .openapi-generator-ignore conekta-ruby/.openapi-generator-ignore && \
npx @openapitools/openapi-generator-cli generate -i api.yaml -g ruby -o conekta-ruby -c config-ruby.json
mkdir -p conekta-ruby &&
cp .openapi-generator-ignore conekta-ruby/.openapi-generator-ignore && \
npx @openapitools/openapi-generator-cli generate \
-i api.yaml \
-g ruby \
-o conekta-ruby \
-c config-ruby.json

csharp:
mkdir -p conekta-.net && \
cp .openapi-generator-ignore conekta-.net/.openapi-generator-ignore && \
cp .openapi-generator-ignore conekta-.net/.openapi-generator-ignore && \
rm -rf ../conekta-.net/docs && \
rm -rf ../conekta-.net/src/Conekta.net/Model && \
npx @openapitools/openapi-generator-cli generate \
Expand All @@ -30,10 +53,18 @@ csharp:
--global-property modelTests=false

php:
npx @openapitools/openapi-generator-cli generate -i api.yaml -g php -o conekta-php -c config-php.json
npx @openapitools/openapi-generator-cli generate \
-i api.yaml \
-g php \
-o conekta-php \
-c config-php.json

node:
npx @openapitools/openapi-generator-cli generate -i api.yaml -g typescript-fetch -o conekta-node -c config-node.json
npx @openapitools/openapi-generator-cli generate \
-i api.yaml \
-g typescript-fetch \
-o conekta-node \
-c config-node.json

update-readme:
make merge && rdme openapi _build/api.yaml --id=$(API_README_VERSION_ID) --key=${README_API_KEY}
7 changes: 4 additions & 3 deletions config-java.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"developerOrganization": "Conekta, Inc.",
"developerOrganizationUrl": "https://www.conekta.io",
"artifactUrl": "https://developers.conekta.com/",
"artifactVersion": "3.0.3",
"artifactVersion": "6.0.0",
"modelPackage": "com.conekta.model",
"licenseName": "MIT License",
"invokerPackage": "com.conekta",
Expand All @@ -17,10 +17,11 @@
"groupId": "io.conekta",
"scmConnection": "scm:git:git@github.com:conekta/ct-conekta-java.git",
"scmDeveloperConnection": "scm:git:git@github.com:conekta/ct-conekta-java.git",
"scmUrl": "https://github.com/conekta/ct-conekta-java/tree/master",
"scmUrl": "https://github.com/conekta/ct-conekta-java/tree/main",
"library": "jersey3",
"files": {
"AUTHORS.md": {},
"CODE_OF_CONDUCT.md": {},
"LICENSE": {}
},
"javaMinVersion": 11,
Expand All @@ -30,6 +31,6 @@
"disallowAdditionalPropertiesIfNotPresent": true,
"useOneOfDiscriminatorLookup": true,
"serializationLibrary": "jackson",
"httpUserAgent": "Conekta/v2 JavaBindings/4.0.0",
"httpUserAgent": "Conekta/v2 JavaBindings/6.0.0",
"openApiNullable" : false
}