Skip to content

Commit

Permalink
feat(domain): add standard DIDUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-frade-iohk committed Sep 18, 2022
1 parent 95654a4 commit 5dffe47
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions Domain/Sources/Models/DIDUrl.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/// Represents a DIDUrl with ``did``, ``path``, ``parameters``, ``fragment``
/// As specified in [w3 standards](`https://www.w3.org/TR/did-core/#dfn-did-urls`)
public struct DIDUrl {
public let did: DID
public let path: [String]
public let parameters: [String: [String]]
public let fragment: String?

public init(
did: DID,
path: [String],
parameters: [String: [String]],
fragment: String? = nil
) {
self.did = did
self.path = path
self.parameters = parameters
self.fragment = fragment
}
}
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ else
cd atala-prism-swift-sdk || exit
fi

openapi-generator generate -g swift5 -o OpenAPI/Castor -i ../atala-prism-building-blocks/castor/api/castor-openapi-spec.yaml --additional-properties=projectName=CastorAPI
openapi-generator generate -g swift5 -o OpenAPI/Castor -i ../atala-prism-building-blocks/castor/api/http/castor-openapi-spec.yaml --additional-properties=projectName=CastorAPI

openapi-generator generate -g swift5 -o OpenAPI/Pollux -i ../atala-prism-building-blocks/pollux/api/pollux-openapi-spec.yaml --additional-properties=projectName=PolluxAPI
fi

0 comments on commit 5dffe47

Please sign in to comment.