Skip to content

Commit 4bc2866

Browse files
committed
[FEATURE] DocumentSchema struct updated.
1 parent 9cf6336 commit 4bc2866

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/infrastructure/dto/document/dto_document_schema.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use crate::infrastructure::dto::field::generate::dto_field_data::DTOFieldData;
66
#[derive(Clone, Serialize)]
77
pub struct DTODocumentSchema {
88
comments: Vec<String>,
9+
sw_strict: bool,
910
fields: Vec<DTOFieldData>
1011
}
1112

@@ -14,6 +15,7 @@ impl DTODocumentSchema {
1415
pub fn from(schema: &DocumentSchema) -> Self {
1516
Self {
1617
comments: schema.comments(),
18+
sw_strict: schema.is_strict(),
1719
fields: schema.fields().iter()
1820
.map(|f| DTOFieldData::from(f))
1921
.collect()

0 commit comments

Comments
 (0)