You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CHANGELOG.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,24 @@
1
1
# Changelog
2
2
3
+
## 2025-05-08 "Metadata Field API Improvements & Bugfixes" - version 1.12.0
4
+
5
+
### Fixed
6
+
- Fixed validation errors in field creation and updating by changing the return type from `Field` to `FieldResponse` model
7
+
8
+
### Changed
9
+
-**Improved Metadata Field API (in `pythonik.specs.metadata.MetadataSpec`):**
10
+
- Renamed `create_metadata_field()` to `create_field()` for more consistent naming
11
+
- Renamed `update_metadata_field()` to `update_field()` for more consistent naming
12
+
- Renamed `delete_metadata_field()` to `delete_field()` for more consistent naming
13
+
- Return type now uses `FieldResponse` model instead of `Field` for more comprehensive metadata field information
14
+
- Added backward compatibility aliases for the old method names (will be removed in a future version)
15
+
-**Testing:**
16
+
- Updated all tests to use the new method names and return types
17
+
- Added tests to verify backward compatibility aliases work correctly
18
+
19
+
### Technical Details
20
+
This update fixes validation errors that occurred when creating and updating metadata fields by correctly using the `FieldResponse` model instead of `Field`, making the API work as expected. It also improves the metadata field management API with more consistent method naming while maintaining backward compatibility through aliases. The `FieldResponse` model provides the proper structure for the API responses, and the backward compatibility aliases ensure existing code continues to work correctly.
21
+
3
22
## 2025-05-08 "Metadata Field Management & Type Safety" - version 1.11.0
0 commit comments