-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release/v2.2.0
- Loading branch information
Showing
91 changed files
with
2,900 additions
and
11,722 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
kind: pipeline | ||
type: kubernetes | ||
name: default | ||
|
||
trigger: | ||
branch: | ||
- main | ||
event: | ||
- pull_request | ||
|
||
|
||
steps: | ||
- name: build_image | ||
image: plugins/ecr | ||
privileged: true | ||
settings: | ||
dockerfile: Dockerfile | ||
registry: 462204803675.dkr.ecr.us-east-1.amazonaws.com | ||
debug: true | ||
target: builder | ||
tags: | ||
- "${DRONE_BUILD_NUMBER}" | ||
environment: | ||
AWS_ACCESS_KEY_ID: | ||
from_secret: AWS_ACCESS_KEY_ID | ||
AWS_SECRET_ACCESS_KEY: | ||
from_secret: AWS_SECRET_ACCESS_KEY | ||
PLUGIN_SSH_AGENT_KEY: | ||
from_secret: SSH_KEY | ||
DOCKER_BUILDKIT: 1 | ||
ECR_CREATE_REPOSITORY: true | ||
PLUGIN_REPO: ${DRONE_REPO} | ||
- name: validate | ||
image: 462204803675.dkr.ecr.us-east-1.amazonaws.com/${DRONE_REPO}:${DRONE_BUILD_NUMBER} | ||
depends_on: | ||
- build_image | ||
commands: | ||
- openapi-generator-cli validate -i api.yaml | ||
- name: dummy generator | ||
image: 462204803675.dkr.ecr.us-east-1.amazonaws.com/${DRONE_REPO}:${DRONE_BUILD_NUMBER} | ||
depends_on: | ||
- build_image | ||
commands: | ||
- openapi-generator-cli generate -i api.yaml -g openapi-yaml | ||
|
||
image_pull_secrets: | ||
- ECR_PULL_SECRET | ||
- DOCKERCONFIG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
FROM node:14 as builder | ||
FROM node:16 as builder | ||
|
||
# Install OpenJDK-11 | ||
RUN apt-get update && \ | ||
apt-get install -y openjdk-11-jre-headless && \ | ||
apt-get clean; | ||
|
||
RUN npm install @openapitools/openapi-generator-cli -g | ||
RUN openapi-generator-cli version-manager set 6.3.0 | ||
RUN openapi-generator-cli version-manager set 7.3.0 | ||
WORKDIR /app | ||
|
||
COPY parameters/ parameters/ | ||
COPY requestBodies requestBodies/ | ||
COPY resources resources/ | ||
COPY schemas schemas/ | ||
COPY templates templates/ | ||
COPY Makefile Makefile | ||
COPY api.yaml api.yaml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,11 @@ | ||
API_README_VERSION_ID = 641deb4041d58005f2c45bf3 | ||
merge: | ||
npx @openapitools/openapi-generator-cli generate \ | ||
docker run --rm \ | ||
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.4.0 generate \ | ||
-g openapi-yaml \ | ||
-i api.yaml \ | ||
-p outputFile=_build/api.yaml \ | ||
-i /local/api.yaml \ | ||
-p outputFile=local/_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 \ | ||
--global-property modelTests=false | ||
|
||
java: | ||
mkdir -p conekta-java && \ | ||
npx @openapitools/openapi-generator-cli generate \ | ||
-i api.yaml \ | ||
-g java \ | ||
-o ../ct-conekta-java \ | ||
-c config-java.json \ | ||
--global-property modelTests=false \ | ||
--additional-properties=hideGenerationTimestamp=true | ||
|
||
go: | ||
npx @openapitools/openapi-generator-cli generate \ | ||
-i api.yaml \ | ||
-g go \ | ||
-o ../conekta-go \ | ||
-c config-go.json \ | ||
--global-property modelTests=false \ | ||
--additional-properties=hideGenerationTimestamp=true | ||
|
||
ruby: | ||
npx @openapitools/openapi-generator-cli generate \ | ||
-i api.yaml \ | ||
-g ruby \ | ||
-o ../conekta-ruby \ | ||
-c config-ruby.json \ | ||
--global-property modelTests=false | ||
|
||
csharp: | ||
mkdir -p conekta-.net && \ | ||
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 \ | ||
-i api.yaml \ | ||
-g csharp-netcore \ | ||
-o ../conekta-.net \ | ||
-c config-netcore.json \ | ||
--global-property modelTests=false | ||
|
||
php: | ||
npx @openapitools/openapi-generator-cli generate \ | ||
-i api.yaml \ | ||
-g php \ | ||
-o ../conekta-php \ | ||
-c config-php.json \ | ||
--global-property modelTests=false | ||
|
||
node: | ||
rm -rf ../conekta-node/api && \ | ||
rm -rf ../conekta-node/model && \ | ||
npx @openapitools/openapi-generator-cli generate -i api.yaml -g typescript-axios \ | ||
-o ../conekta-node -c config-node.json \ | ||
--global-property apiDocs=false --global-property apiTests=true | ||
|
||
dart: | ||
rm -rf ../conekta-dart/lib && \ | ||
rm -rf ../conekta-dart/doc && \ | ||
npx @openapitools/openapi-generator-cli generate -i api.yaml -g dart-dio \ | ||
-o ../conekta-dart \ | ||
-c config-dart.json \ | ||
--global-property modelTests=false | ||
|
||
update-readme: | ||
make merge && rdme openapi _build/api.yaml --id=$(API_README_VERSION_ID) --key=${README_API_KEY} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.