@@ -39,9 +39,9 @@ namespace iceberg::rest {
3939
4040// / \brief Server-provided configuration for the catalog.
4141struct ICEBERG_REST_EXPORT CatalogConfig {
42- std::unordered_map<std::string, std::string> defaults; // required
43- std::unordered_map<std::string, std::string> overrides; // required
44- std::vector<std::string> endpoints;
42+ std::unordered_map<std::string, std::string> defaults{} ; // required
43+ std::unordered_map<std::string, std::string> overrides{} ; // required
44+ std::vector<std::string> endpoints{} ;
4545
4646 // / \brief Validates the CatalogConfig.
4747 Status Validate () const {
@@ -58,7 +58,7 @@ struct ICEBERG_REST_EXPORT ErrorModel {
5858 std::string message; // required
5959 std::string type; // required
6060 uint32_t code; // required
61- std::vector<std::string> stack;
61+ std::vector<std::string> stack{} ;
6262
6363 // / \brief Validates the ErrorModel.
6464 Status Validate () const {
@@ -88,16 +88,16 @@ struct ICEBERG_REST_EXPORT ErrorResponse {
8888// / \brief Request to create a namespace.
8989struct ICEBERG_REST_EXPORT CreateNamespaceRequest {
9090 Namespace namespace_; // required
91- std::unordered_map<std::string, std::string> properties;
91+ std::unordered_map<std::string, std::string> properties{} ;
9292
9393 // / \brief Validates the CreateNamespaceRequest.
9494 Status Validate () const { return {}; }
9595};
9696
9797// / \brief Update or delete namespace properties request.
9898struct ICEBERG_REST_EXPORT UpdateNamespacePropertiesRequest {
99- std::vector<std::string> removals;
100- std::unordered_map<std::string, std::string> updates;
99+ std::vector<std::string> removals{} ;
100+ std::unordered_map<std::string, std::string> updates{} ;
101101
102102 // / \brief Validates the UpdateNamespacePropertiesRequest.
103103 Status Validate () const {
@@ -171,7 +171,7 @@ using LoadTableResponse = LoadTableResult;
171171// / \brief Response body for listing namespaces.
172172struct ICEBERG_REST_EXPORT ListNamespacesResponse {
173173 PageToken next_page_token;
174- std::vector<Namespace> namespaces;
174+ std::vector<Namespace> namespaces{} ;
175175
176176 // / \brief Validates the ListNamespacesResponse.
177177 Status Validate () const { return {}; }
@@ -180,7 +180,7 @@ struct ICEBERG_REST_EXPORT ListNamespacesResponse {
180180// / \brief Response body after creating a namespace.
181181struct ICEBERG_REST_EXPORT CreateNamespaceResponse {
182182 Namespace namespace_; // required
183- std::unordered_map<std::string, std::string> properties;
183+ std::unordered_map<std::string, std::string> properties{} ;
184184
185185 // / \brief Validates the CreateNamespaceResponse.
186186 Status Validate () const { return {}; }
@@ -189,17 +189,17 @@ struct ICEBERG_REST_EXPORT CreateNamespaceResponse {
189189// / \brief Response body for loading namespace properties.
190190struct ICEBERG_REST_EXPORT GetNamespaceResponse {
191191 Namespace namespace_; // required
192- std::unordered_map<std::string, std::string> properties;
192+ std::unordered_map<std::string, std::string> properties{} ;
193193
194194 // / \brief Validates the GetNamespaceResponse.
195195 Status Validate () const { return {}; }
196196};
197197
198198// / \brief Response body after updating namespace properties.
199199struct ICEBERG_REST_EXPORT UpdateNamespacePropertiesResponse {
200- std::vector<std::string> updated; // required
201- std::vector<std::string> removed; // required
202- std::vector<std::string> missing;
200+ std::vector<std::string> updated{} ; // required
201+ std::vector<std::string> removed{} ; // required
202+ std::vector<std::string> missing{} ;
203203
204204 // / \brief Validates the UpdateNamespacePropertiesResponse.
205205 Status Validate () const { return {}; }
@@ -208,7 +208,7 @@ struct ICEBERG_REST_EXPORT UpdateNamespacePropertiesResponse {
208208// / \brief Response body for listing tables in a namespace.
209209struct ICEBERG_REST_EXPORT ListTablesResponse {
210210 PageToken next_page_token;
211- std::vector<TableIdentifier> identifiers;
211+ std::vector<TableIdentifier> identifiers{} ;
212212
213213 // / \brief Validates the ListTablesResponse.
214214 Status Validate () const { return {}; }
0 commit comments