Skip to content

Commit 5636560

Browse files
committed
Merge branch 'feature/openapi' into develop
2 parents ff1f4a9 + a0d2092 commit 5636560

File tree

11 files changed

+44
-56
lines changed

11 files changed

+44
-56
lines changed

openapi/asyncapi-generator/README.md

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
######################################################################
2+
3+
### install
4+
5+
### homebrew
6+
brew install asyncapi

openapi/asyncapi/README.md

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
######################################################################
2+
3+
oasdiff diff openapi-v0.yaml openapi-v1.yaml --strip-prefix-base /api --prefix-base /api/v1 --exclude-elements summary,description,endpoints --match-path notices/{id} -c
4+
oasdiff diff openapi-v0.yaml openapi-v1.yaml --strip-prefix-base /api --prefix-base /api/v1 --exclude-elements summary,description,endpoints --match-path notices/{id} -c
5+
6+
oasdiff diff https://swagger.example.com/api/openapi.json https://swagger.example.com/api/openapi.json --strip-prefix-base /api --prefix-base /api/v1 --exclude-elements summary,description,endpoints,examples --composed --match-path notices
7+
8+
openapi-generator-cli generate -i https://swagger.example.com/api/openapi.json -g openapi -o ./output --skip-validate-spec
9+
oasdiff diff output/openapi.json https://swagger.example.com/api/openapi.yaml --exclude-elements summary,description,endpoints,examples --strip-prefix-base /api --prefix-base /api/v1 --match-path notices | yq .paths

openapi/openapi-generator/README.md

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
######################################################################
22

3+
### install
4+
5+
### install openapi generator cli
6+
brew install openapi-generator
7+
8+
### install swagger codegen
9+
brew install swagger-codegen
10+
11+
######################################################################
12+
313
openapi-generator generate -i petstore.yaml -o petstore -g go-echo-server
414

515
openapi-generator generate -i openapi.yaml -o sample -g typescript-fetch

openapi/postman/README.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

openapi/postman/postman-commands.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
######################################################################
22

3+
### install
4+
5+
### homebrew
6+
brew install --cask postman
7+
8+
### chocolatey
9+
choco install -y postman
10+
11+
######################################################################
12+
313
### Converting Postman collections from v1 to v2
414

515
### Install the Postman Collection Transformer

openapi/prism/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
# Stoplight Prism
22

33
Prism is a API mocking and contract testing tool. It supports mock servers and validation proxy from OpenAPI specification.
4-
5-
## Install Prism
6-
7-
```sh
8-
npm install -g @stoplight/prism-cli
9-
```

openapi/prism/prisim-commands.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
######################################################################
22

3+
### install
4+
npm install -g @stoplight/prism-cli
5+
6+
######################################################################
7+
38
npx prism mock -d petstore3.json

0 commit comments

Comments
 (0)