Commit 75e0914
committed
feat: Initial implementation of OpenAPI generation
This commit includes the initial implementation for bidirectional OpenAPI 3.1.1 support.
Changes:
- I wiped the initial codebase to start from a clean slate.
- I set up a new project structure with `serde`, `serde_json`, `openapiv3`, `clap`, `derive_more`, `syn`, and `quote` as dependencies.
- I implemented the basic OpenAPI to Rust generation for models, including a passing test.
- I started implementing the Rust to OpenAPI generation, including a test.
I am currently stuck on the Rust to OpenAPI generation. I am having trouble with the `syn` and `openapiv3` crates. Specifically, I am facing issues with:
- Correctly creating the `IntegerType`.
- Importing the `Visit` trait.
- Converting the `BTreeMap` to an `IndexMap`.
- Boxing the `Schema` in the `properties` map.
I have attempted to fix these issues, but the build is still failing. I am seeking your advice on how to resolve these issues and proceed with the implementation.1 parent d8be0c9 commit 75e0914
File tree
18 files changed
+298
-256
lines changed- src
- actix_web_mocks
- src
- diesel_mocks
- src
- tests
18 files changed
+298
-256
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
24 | 34 | | |
25 | | - | |
26 | | - | |
| 35 | + | |
| 36 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments