Skip to content

Commit 2b48f67

Browse files
committed
add comments about autogen'd files
1 parent 7204119 commit 2b48f67

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

backend/src/connector/api.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//!
2+
//! This file was auto-generated using OpenAPI server generator
3+
//! at <https://openapi-generator.tech/docs/generators/rust>
4+
//! on 2023-07-07
5+
//! using BOB's REST API schema, commit = ade0eadf1db7cda072cfab07dff7b1b57247e34a:
6+
//! <https://github.com/qoollo/bob/blob/928faef96ced755b75e3396b84febad1ecaf1dae/config-examples/openapi.yaml>
7+
//!
18
use super::context::ContextWrapper;
29
use super::dto::{self};
310
use crate::prelude::*;

backend/src/connector/client.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1+
//!
2+
//! This file was *partly* auto-generated using OpenAPI server generator
3+
//! at <https://openapi-generator.tech/docs/generators/rust>
4+
//! on 2023-07-07
5+
//! using BOB's REST API schema, commit = ade0eadf1db7cda072cfab07dff7b1b57247e34a:
6+
//! <https://github.com/qoollo/bob/blob/928faef96ced755b75e3396b84febad1ecaf1dae/config-examples/openapi.yaml>
7+
//!
8+
//! This file was modified in order to get rid of the "swagger" crate, which brings
9+
//! a lot of unnecessary dependencies (for example, openssl, which can cause problems
10+
//! when creating docker images, even if we use only the http client). In addition,
11+
//! some refactoring was done to reduce the code size (from 2k-ish LOC to 500).
12+
//!
13+
114
#![allow(
215
missing_docs,
316
clippy::module_name_repetitions,
417
dead_code,
518
unused_variables
619
)]
7-
820
use super::{
921
api::prelude::*,
1022
context::{BodyExt, DropContextService},
@@ -29,7 +41,6 @@ use std::{
2941
task::{Context, Poll},
3042
};
3143
use thiserror::Error;
32-
3344
/// Error type for failing to create a Client
3445
#[derive(Debug, Error)]
3546
pub enum ClientInitError {

backend/src/connector/dto.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
/*
2-
* Note: This file is mostly autogenerated
3-
*/
1+
//!
2+
//! This file was *partly* auto-generated using OpenAPI server generator
3+
//! at <https://openapi-generator.tech/docs/generators/rust>
4+
//! on 2023-07-07
5+
//! using BOB's REST API schema, commit = ade0eadf1db7cda072cfab07dff7b1b57247e34a:
6+
//! <https://github.com/qoollo/bob/blob/928faef96ced755b75e3396b84febad1ecaf1dae/config-examples/openapi.yaml>
7+
//!
8+
//! This file was modified in order to get rid of the "swagger" crate, which brings
9+
//! a lot of unnecessary dependencies (for example, openssl, which can cause problems
10+
//! when creating docker images, even if we use only the http client). In addition,
11+
//! some refactoring was done to reduce the code size.
12+
//!
413
514
use std::collections::HashMap;
615

0 commit comments

Comments
 (0)