Commit c546a96
committed
feat: Attempt to generate petstore server
This commit contains my attempts to generate a full server backend from the petstore OpenAPI specification.
I have been struggling to correctly handle references within the OpenAPI schema. I have tried several approaches, including:
- Matching on `SchemaKind::Any` and checking for a `reference` field.
- Using `SchemaKind::Reference`.
- Using a helper function that takes a `ReferenceOr<Schema>`.
I am currently stuck on the implementation of the `get_type_from_schema` and `get_diesel_type_from_schema` helper functions. I am not sure how to correctly handle the different variants of the `ReferenceOr` enum and the `SchemaKind` enum.
I am seeking advice on the correct way to handle references in the `openapiv3` crate.1 parent f325d20 commit c546a96
File tree
5 files changed
+961
-16
lines changed- output
- src
5 files changed
+961
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
Whitespace-only changes.
0 commit comments