Skip to content

change schema used in FastlyServicesResponse #304

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-09-23 19:10:18.896643",
"spec_repo_commit": "41592dc6"
"regenerated": "2024-09-24 13:39:54.310752",
"spec_repo_commit": "7752efd3"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-09-23 19:10:18.910900",
"spec_repo_commit": "41592dc6"
"regenerated": "2024-09-24 13:39:54.325117",
"spec_repo_commit": "7752efd3"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9200,7 +9200,7 @@ components:
data:
description: The JSON:API data schema.
items:
$ref: '#/components/schemas/FastlyServiceResponse'
$ref: '#/components/schemas/FastlyServiceData'
type: array
type: object
Finding:
Expand Down
4 changes: 2 additions & 2 deletions src/datadogV2/model/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1396,8 +1396,6 @@ pub mod model_fastly_account_update_request_attributes;
pub use self::model_fastly_account_update_request_attributes::FastlyAccountUpdateRequestAttributes;
pub mod model_fastly_services_response;
pub use self::model_fastly_services_response::FastlyServicesResponse;
pub mod model_fastly_service_response;
pub use self::model_fastly_service_response::FastlyServiceResponse;
pub mod model_fastly_service_data;
pub use self::model_fastly_service_data::FastlyServiceData;
pub mod model_fastly_service_attributes;
Expand All @@ -1406,6 +1404,8 @@ pub mod model_fastly_service_type;
pub use self::model_fastly_service_type::FastlyServiceType;
pub mod model_fastly_service_request;
pub use self::model_fastly_service_request::FastlyServiceRequest;
pub mod model_fastly_service_response;
pub use self::model_fastly_service_response::FastlyServiceResponse;
pub mod model_okta_accounts_response;
pub use self::model_okta_accounts_response::OktaAccountsResponse;
pub mod model_okta_account_response_data;
Expand Down
6 changes: 3 additions & 3 deletions src/datadogV2/model/model_fastly_services_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::fmt::{self, Formatter};
pub struct FastlyServicesResponse {
/// The JSON:API data schema.
#[serde(rename = "data")]
pub data: Option<Vec<crate::datadogV2::model::FastlyServiceResponse>>,
pub data: Option<Vec<crate::datadogV2::model::FastlyServiceData>>,
#[serde(flatten)]
pub additional_properties: std::collections::BTreeMap<String, serde_json::Value>,
#[serde(skip)]
Expand All @@ -30,7 +30,7 @@ impl FastlyServicesResponse {
}
}

pub fn data(mut self, value: Vec<crate::datadogV2::model::FastlyServiceResponse>) -> Self {
pub fn data(mut self, value: Vec<crate::datadogV2::model::FastlyServiceData>) -> Self {
self.data = Some(value);
self
}
Expand Down Expand Up @@ -67,7 +67,7 @@ impl<'de> Deserialize<'de> for FastlyServicesResponse {
where
M: MapAccess<'a>,
{
let mut data: Option<Vec<crate::datadogV2::model::FastlyServiceResponse>> = None;
let mut data: Option<Vec<crate::datadogV2::model::FastlyServiceData>> = None;
let mut additional_properties: std::collections::BTreeMap<
String,
serde_json::Value,
Expand Down
Loading