Skip to content

Commit 704f5d8

Browse files
committed
revert(webvh): drop create options.alias synonym
Restore identifier-only create options to match prior plugin API. Signed-off-by: Patrick St-Louis <patrick.st-louis@opsecid.ca> Made-with: Cursor
1 parent 32ab056 commit 704f5d8

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

webvh/webvh/did/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ async def create(self, options: dict):
529529
# Set default namespace and random identifier if none provided
530530
domain = await get_server_domain(self.profile)
531531
namespace = options.get("namespace", "default")
532-
identifier = options.get("identifier") or options.get("alias") or str(uuid4())
532+
identifier = options.get("identifier", str(uuid4()))
533533

534534
# Contact the server to request the identifier
535535
requested_identifier = await self.server_client.request_identifier(

webvh/webvh/did/models/operations.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,6 @@ class CreateOptionsSchema(OpenAPISchema):
207207
"example": "1",
208208
},
209209
)
210-
alias = fields.Str(
211-
required=False,
212-
metadata={
213-
"description": "Alias for the DID path segment (synonym for identifier).",
214-
"example": "my-alias",
215-
},
216-
)
217210
version_time = fields.Str(
218211
required=False,
219212
metadata={

0 commit comments

Comments
 (0)