-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: standarize refs across all docs (#199)
**NOTE**: some fields in schemas have changed in name and shape (new shape is always `proto/versionId/v1.proto` for reference): * Preset: `fieldIds` -> `fieldRefs` * Preset: `iconId` -> `iconRef` * Track: `refs` -> `observationRefs` * Translation: `docIdRef` and `schemaNameRef` now are inside `docRef` (`schemaNameRef` now being called `type`) * Translation: `fieldRef` -> `propertyRef` (to avoid confusion since its not related to `Field` at all) * standarize refs accross all docs * * add `versionId` proto, use it on every ref.versionId * update ref fields and use a more specific name * use ref.type only on translation * remove unnecessary checks * fix types and encode/decode * add checks for repeated fields * fix tests * add versionId/v1.proto * use similar error messages when missing `versionId` * remove bad-docs tests since they don't make sense anymore --------- Co-authored-by: Tomás Ciccola <tciccola@digital-democracy.com>
- Loading branch information
1 parent
37bc87d
commit d4e000f
Showing
14 changed files
with
196 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
syntax = "proto3"; | ||
package mapeo; | ||
|
||
message VersionId_1 { | ||
bytes coreDiscoveryKey = 1; | ||
int32 index = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.