Skip to content

Commit

Permalink
test: example now match OpenApi 3.0 spec
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-bonnel committed Mar 10, 2017
1 parent 9cb978a commit 8ec0a92
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 15 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ new Vue({

## Resources

* [swagger2openapi](https://github.com/Mermade/swagger2openapi) let you convert Swagger 2.0 definitions into OpenApi 3.0.x
* [Awesome OpenApi 3](https://github.com/Mermade/awesome-openapi3) list various projects related to OpenApi 3.0.x
* [swagger2openapi](https://github.com/Mermade/swagger2openapi) let you convert Swagger 2.0 definitions into OpenApi 3.0.x

## Similar projects

Expand Down
50 changes: 36 additions & 14 deletions test/petstore.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@
"name": "petId",
"description": "ID of pet that needs to be fetched",
"required": true,
"type": "integer",
"format": "int64"
"schema": {
"type": "integer",
"format": "int64"
}
}],
"responses": {
"200": {
Expand Down Expand Up @@ -259,7 +261,9 @@
"name": "petId",
"description": "ID of pet that needs to be updated",
"required": true,
"type": "string"
"schema": {
"type": "string"
}
}],
"responses": {
"405": {
Expand Down Expand Up @@ -306,14 +310,18 @@
"name": "api_key",
"description": "",
"required": true,
"type": "string"
"schema": {
"type": "string"
}
}, {
"in": "path",
"name": "petId",
"description": "Pet id to delete",
"required": true,
"type": "integer",
"format": "int64"
"schema": {
"type": "integer",
"format": "int64"
}
}],
"responses": {
"400": {
Expand Down Expand Up @@ -382,7 +390,9 @@
"name": "orderId",
"description": "ID of pet that needs to be fetched",
"required": true,
"type": "string"
"schema": {
"type": "string"
}
}],
"responses": {
"200": {
Expand Down Expand Up @@ -420,7 +430,9 @@
"name": "orderId",
"description": "ID of the order that needs to be deleted",
"required": true,
"type": "string"
"schema": {
"type": "string"
}
}],
"responses": {
"400": {
Expand Down Expand Up @@ -529,14 +541,18 @@
"name": "username",
"description": "The user name for login",
"required": false,
"type": "string"
"schema": {
"type": "string"
}
}, {
"in": "query",
"name": "password",
"description": "The password for login in clear text",
"required": false,
"type": "string",
"format": "password"
"schema": {
"type": "string",
"format": "password"
}
}],
"responses": {
"200": {
Expand Down Expand Up @@ -588,7 +604,9 @@
"name": "username",
"description": "The name that needs to be fetched. Use user1 for testing. ",
"required": true,
"type": "string"
"schema": {
"type": "string"
}
}],
"responses": {
"200": {
Expand Down Expand Up @@ -626,7 +644,9 @@
"name": "username",
"description": "name that need to be deleted",
"required": true,
"type": "string"
"schema": {
"type": "string"
}
}],
"responses": {
"400": {
Expand Down Expand Up @@ -659,7 +679,9 @@
"name": "username",
"description": "The name that needs to be deleted",
"required": true,
"type": "string"
"schema": {
"type": "string"
}
}],
"responses": {
"400": {
Expand Down

0 comments on commit 8ec0a92

Please sign in to comment.