We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cf6336 commit 4bc2866Copy full SHA for 4bc2866
src/infrastructure/dto/document/dto_document_schema.rs
@@ -6,6 +6,7 @@ use crate::infrastructure::dto::field::generate::dto_field_data::DTOFieldData;
6
#[derive(Clone, Serialize)]
7
pub struct DTODocumentSchema {
8
comments: Vec<String>,
9
+ sw_strict: bool,
10
fields: Vec<DTOFieldData>
11
}
12
@@ -14,6 +15,7 @@ impl DTODocumentSchema {
14
15
pub fn from(schema: &DocumentSchema) -> Self {
16
Self {
17
comments: schema.comments(),
18
+ sw_strict: schema.is_strict(),
19
fields: schema.fields().iter()
20
.map(|f| DTOFieldData::from(f))
21
.collect()
0 commit comments