Skip to content

Commit 12436dc

Browse files
committed
fix
1 parent 39260cb commit 12436dc

File tree

1 file changed

+1
-18
lines changed
  • catalyst-gateway/bin/src/service/api/documents/post_document_index_query/v2

1 file changed

+1
-18
lines changed

catalyst-gateway/bin/src/service/api/documents/post_document_index_query/v2/request.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl Example for DocumentIndexQueryFilterV2 {
110110
doc_ref: Some(Example::example()),
111111
template: Some(Example::example()),
112112
reply: Some(Example::example()),
113-
parameters: Some(Example::example()),
113+
..Default::default()
114114
}
115115
}
116116
}
@@ -132,23 +132,6 @@ impl Example for DocumentTypeList {
132132
}
133133
}
134134

135-
impl_array_types!(
136-
IdAndVerRefDocumentedList,
137-
IdAndVerRefDocumented,
138-
Some(poem_openapi::registry::MetaSchema {
139-
example: Self::example().to_json(),
140-
max_items: Some(10),
141-
items: Some(Box::new(IdAndVerRefDocumented::schema_ref())),
142-
..poem_openapi::registry::MetaSchema::ANY
143-
})
144-
);
145-
146-
impl Example for IdAndVerRefDocumentedList {
147-
fn example() -> Self {
148-
Self(vec![IdAndVerRefDocumented::example()])
149-
}
150-
}
151-
152135
// Note: We need to do this, because POEM doesn't give us a way to set `"title"` for the
153136
// openapi docs on an object.
154137
#[derive(NewType)]

0 commit comments

Comments
 (0)