-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paul Hallett
committed
Jul 24, 2023
1 parent
6b123fd
commit 4bbb771
Showing
9 changed files
with
559 additions
and
325 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,15 @@ | ||
# Changelog | ||
|
||
## 0.1.0 | ||
|
||
- Initial version | ||
- Mostly works with a simple FastAPI generated spec (3.0.2) | ||
- Works with Twilio's spec (see example_openapi_specs/ directory) (3.0.1) | ||
- Almost works with stripes | ||
|
||
### 0.2.0 | ||
|
||
- Improved CLI output | ||
- Now supports an openapi spec generated from a dotnet project (`Microsoft.OpenApi.Models`) | ||
- async client support | ||
- HTTP Bearer authentication support |
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 |
---|---|---|
@@ -0,0 +1,153 @@ | ||
{ | ||
"openapi": "3.0.2", | ||
"info": { | ||
"title": "Simple API Example", | ||
"version": "0.1.0" | ||
}, | ||
"paths": { | ||
"/health-check": { | ||
"get": { | ||
"summary": "Health Check", | ||
"description": "Standard health check.", | ||
"operationId": "health_check_health_check_get", | ||
"responses": { | ||
"200": { | ||
"description": "Successful Response", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/HealthCheckResponse" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/test-input": { | ||
"post": { | ||
"summary": "Test Input", | ||
"description": "A POST API endpoint for testing", | ||
"operationId": "test_input_test_input_post", | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/TestInputData" | ||
} | ||
} | ||
}, | ||
"required": true | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "Successful Response", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/TestInputResponse" | ||
} | ||
} | ||
} | ||
}, | ||
"422": { | ||
"description": "Validation Error", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/HTTPValidationError" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"HTTPValidationError": { | ||
"title": "HTTPValidationError", | ||
"type": "object", | ||
"properties": { | ||
"detail": { | ||
"title": "Detail", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/components/schemas/ValidationError" | ||
} | ||
} | ||
} | ||
}, | ||
"HealthCheckResponse": { | ||
"title": "HealthCheckResponse", | ||
"type": "object", | ||
"properties": { | ||
"status": { | ||
"title": "Status", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"TestInputData": { | ||
"title": "TestInputData", | ||
"required": [ | ||
"my_title" | ||
], | ||
"type": "object", | ||
"properties": { | ||
"my_title": { | ||
"title": "My Title", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"TestInputResponse": { | ||
"title": "TestInputResponse", | ||
"required": [ | ||
"title" | ||
], | ||
"type": "object", | ||
"properties": { | ||
"title": { | ||
"title": "Title", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"ValidationError": { | ||
"title": "ValidationError", | ||
"required": [ | ||
"loc", | ||
"msg", | ||
"type" | ||
], | ||
"type": "object", | ||
"properties": { | ||
"loc": { | ||
"title": "Location", | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"type": "string" | ||
}, | ||
{ | ||
"type": "integer" | ||
} | ||
] | ||
} | ||
}, | ||
"msg": { | ||
"title": "Message", | ||
"type": "string" | ||
}, | ||
"type": { | ||
"title": "Error Type", | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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.