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
fix(sdk-core): add required $type field to all record creation operations
6
+
7
+
The AT Protocol requires all records to include a `$type` field, but the SDK was omitting it during record creation, causing validation errors like "Record/$type must be a string". This fix:
8
+
9
+
- Adds `$type` field to all record types (rights, claims, locations, contributions, measurements, evaluations, collections)
10
+
- Fixes location record implementation to match `app.certified.location` lexicon schema
11
+
- Makes `srs` (Spatial Reference System) field required for location records with proper validation
12
+
- Updates interfaces and documentation to reflect required fields
13
+
14
+
Breaking change: `location.srs` is now required when creating locations (use "EPSG:4326" for standard WGS84 coordinates).
"srs (Spatial Reference System) is required. Example: 'EPSG:4326' for WGS84 coordinates, or 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' for CRS84.",
672
+
);
673
+
}
674
+
675
+
// Validate that hypercert exists (unused but confirms hypercert is valid)
676
+
awaitthis.get(hypercertUri);
667
677
constcreatedAt=newDate().toISOString();
668
678
669
-
letlocationValue: string|BlobRef=location.value;
679
+
// Determine location type and prepare location data
0 commit comments