-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(codegen) OpenAPI now works with cargo-progenitor
#146
Conversation
I've run into a separate issue from oxidecomputer/progenitor#877 This is run into with things like Lines 86 to 101 in 438bca0
|
cargo-progenitor
And yes! Just fixing these 3 violations makes the AOS file valid AND it still works with progenitor! You can apply this patch to your branch and then we can merge 👍 From 57349001d51730e8a457054ccb12cf29915fd411 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9my=20Greinhofer?= <[email protected]>
Date: Mon, 21 Oct 2024 20:53:01 -0500
Subject: [PATCH] Fix OAS violations
---
openapi.yaml | 7 -------
1 file changed, 7 deletions(-)
diff --git a/openapi.yaml b/openapi.yaml
index 4b0db10..3c30406 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -1043,9 +1043,6 @@ components:
description: "A collection of errors"
items:
$ref: "#/components/schemas/error"
- responses:
- 400:
- $ref: "#/components/responses/bad_request"
features:
type: object
properties:
@@ -1457,7 +1454,6 @@ components:
description: "An analysis"
content:
application/json:
- type: array
schema:
$ref: "#/components/schemas/analysis"
bad_request:
@@ -1546,9 +1542,6 @@ components:
application/json:
schema:
$ref: "#/components/schemas/enqueue"
- responses:
- 403:
- $ref: "#/components/responses/forbidden"
forbidden:
description: >
You weren't authorized to make your request; most likely this indicates an issue
--
2.47.0
|
Signed-off-by: Mikhail Katychev <[email protected]>
Thanks for the patch! |
Thank you so much for fixing the generation! ❤️ I'll add the client as soon as we're done with the work on the API refactoring 💪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Pull Request
Types of changes
Description
This PR addresses issues in
cargo-progenitor
code generationby adding missing types to certain OpenAPI objects during code generation with the codegen below:
Checklist
Fixes: : oxidecomputer/progenitor#877 (comment)