Skip to content

Commit c7bc20c

Browse files
committed
wip
1 parent b18d0f1 commit c7bc20c

File tree

11 files changed

+37
-21
lines changed

11 files changed

+37
-21
lines changed

docs/src/architecture/08_concepts/signed_doc/docs/brand_parameters.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ The following Admin roles may sign documents of this type:
186186

187187
* Brand Admin
188188

189-
Updates are allowed by the original author and from the 'collaborators' metadata field of the previous submitted document's version.
189+
Updates are allowed by the original author and from the 'collaborators' metadata field
190+
of the previous submitted document's version.
190191

191192
## Copyright
192193

docs/src/architecture/08_concepts/signed_doc/docs/campaign_parameters.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ The following Admin roles may sign documents of this type:
215215

216216
* Brand Admin
217217

218-
Updates are allowed by the original author and from the 'collaborators' metadata field of the previous submitted document's version.
218+
Updates are allowed by the original author and from the 'collaborators' metadata field
219+
of the previous submitted document's version.
219220

220221
## Copyright
221222

docs/src/architecture/08_concepts/signed_doc/docs/category_parameters.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ The following Admin roles may sign documents of this type:
215215

216216
* Brand Admin
217217

218-
Updates are allowed by the original author and from the 'collaborators' metadata field of the previous submitted document's version.
218+
Updates are allowed by the original author and from the 'collaborators' metadata field
219+
of the previous submitted document's version.
219220

220221
## Copyright
221222

docs/src/architecture/08_concepts/signed_doc/docs/contest_parameters.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ The following Admin roles may sign documents of this type:
217217

218218
* Brand Admin
219219

220-
Updates are allowed by the original author and from the 'collaborators' metadata field of the previous submitted document's version.
220+
Updates are allowed by the original author and from the 'collaborators' metadata field
221+
of the previous submitted document's version.
221222

222223
## Copyright
223224

docs/src/architecture/08_concepts/signed_doc/docs/proposal.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ The following User roles may sign documents of this type:
229229

230230
* Proposer
231231

232-
Updates are allowed by the original author and from the 'collaborators' metadata field of the previous submitted document's version.
232+
Updates are allowed by the original author and from the 'collaborators' metadata field
233+
of the previous submitted document's version.
233234

234235
## Copyright
235236

docs/src/architecture/08_concepts/signed_doc/docs/proposal_submission_action.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ The following User roles may sign documents of this type:
318318

319319
* Proposer
320320

321-
Updates are allowed by the original author and from the 'collaborators' metadata field of the referenced document specified by the 'ref' metadata field.
321+
Updates are allowed by the original author and from the 'collaborators' metadata field
322+
of the referenced document specified by the 'ref' metadata field.
322323

323324
## Copyright
324325

rust/signed_doc/src/validator/rules/ownership/tests/ref_field_based.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ use crate::{
4242
.unwrap()
4343
.build()
4444
} => true ;
45-
"Latest Version Catalyst Signed Document signed by first author of the refenced doc"
45+
"Latest Version Catalyst Signed Document signed by first author of the referenced doc"
4646
)]
4747
#[test_case(
4848
|provider| {
@@ -75,7 +75,7 @@ use crate::{
7575
.unwrap()
7676
.build()
7777
} => true ;
78-
"Latest Version Catalyst Signed Document signed by one collaborator of the refenced doc"
78+
"Latest Version Catalyst Signed Document signed by one collaborator of the referenced doc"
7979
)]
8080
#[test_case(
8181
|_| {

rust/signed_doc/src/validator/rules/ownership/tests/without_collaborators.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Ownership Validation Rule tests for `DocumentOwnershipRule::WitoutCollaborators`
1+
//! Ownership Validation Rule tests for `DocumentOwnershipRule::OriginalAuthor`
22
//! scenario
33
44
use catalyst_types::{catalyst_id::role_index::RoleId, uuid::UuidV7};

specs/definitions/signed_docs/signers.cue

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,19 @@ _allAdminRoles: or(_allAdminRolesList)
5151
#allowedUpdaterType: "collaborators" | "ref" | *"author"
5252

5353
#updaterDescriptions: {
54-
collaborators: "Updates are allowed by the original author and from the 'collaborators' metadata field of the previous submitted document's version."
55-
ref: "Updates are allowed by the original author and from the 'collaborators' metadata field of the referenced document specified by the 'ref' metadata field."
56-
author: "Only the original author can update and sign a new version of documents."
54+
collaborators: """
55+
Updates are allowed by the original author and from the 'collaborators' metadata field
56+
of the previous submitted document's version.
57+
"""
58+
59+
ref: """
60+
Updates are allowed by the original author and from the 'collaborators' metadata field
61+
of the referenced document specified by the 'ref' metadata field.
62+
"""
63+
64+
author: """
65+
Only the original author can update and sign a new version of documents.
66+
"""
5767
}
5868

5969
#allowedUpdaters: {

specs/generators/packages/spec/src/spec/signers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from enum import Enum
55

66

7-
class CollaboratorsType(str, Enum):
8-
"""Signders Collaborators Specification."""
7+
class UpdatersType(str, Enum):
8+
"""Allowed Updaters Types."""
99

1010
collaborators = "collaborators"
1111
ref_field_based = "ref"
@@ -24,7 +24,7 @@ class AllowedRoles(BaseModel):
2424
class AllowedUpdaters(BaseModel):
2525
"""Allowed Updaters Specification."""
2626

27-
type: CollaboratorsType
27+
type: UpdatersType
2828
description: str
2929

3030
model_config = ConfigDict(extra="forbid")

0 commit comments

Comments
 (0)