-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace OpenAPI generator with openapi-codegen for model generation
- Loading branch information
1 parent
e22b79e
commit ecfe6d8
Showing
192 changed files
with
1,133 additions
and
7,112 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
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
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 |
---|---|---|
@@ -1,34 +1,21 @@ | ||
/* | ||
* Svix API | ||
* | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: 1.1.1 | ||
* | ||
* Generated by: https://openapi-generator.tech | ||
*/ | ||
|
||
#[allow(unused_imports)] | ||
use crate::models; | ||
#[allow(unused_imports)] | ||
// this file is @generated | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] | ||
use super::{ | ||
background_task_status::BackgroundTaskStatus, background_task_type::BackgroundTaskType, | ||
}; | ||
|
||
#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] | ||
pub struct AggregateEventTypesOut { | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "status")] | ||
pub status: models::BackgroundTaskStatus, | ||
#[serde(rename = "task")] | ||
pub task: models::BackgroundTaskType, | ||
|
||
pub status: BackgroundTaskStatus, | ||
|
||
pub task: BackgroundTaskType, | ||
} | ||
|
||
impl AggregateEventTypesOut { | ||
pub fn new( | ||
id: String, | ||
status: models::BackgroundTaskStatus, | ||
task: models::BackgroundTaskType, | ||
) -> AggregateEventTypesOut { | ||
AggregateEventTypesOut { id, status, task } | ||
pub fn new(id: String, status: BackgroundTaskStatus, task: BackgroundTaskType) -> Self { | ||
Self { id, status, task } | ||
} | ||
} |
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 |
---|---|---|
@@ -1,28 +1,15 @@ | ||
/* | ||
* Svix API | ||
* | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: 1.1.1 | ||
* | ||
* Generated by: https://openapi-generator.tech | ||
*/ | ||
|
||
#[allow(unused_imports)] | ||
use crate::models; | ||
#[allow(unused_imports)] | ||
// this file is @generated | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] | ||
#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] | ||
pub struct AppPortalAccessOut { | ||
#[serde(rename = "token")] | ||
pub token: String, | ||
#[serde(rename = "url")] | ||
|
||
pub url: String, | ||
} | ||
|
||
impl AppPortalAccessOut { | ||
pub fn new(token: String, url: String) -> AppPortalAccessOut { | ||
AppPortalAccessOut { token, url } | ||
pub fn new(token: String, url: String) -> Self { | ||
Self { token, url } | ||
} | ||
} |
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
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
Oops, something went wrong.