-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add schemaVersion to credentialSet (#229)
* Add schemaVersion to credentialSet Add a schemaVersion field to credentialSet so that we can identify the spec version that the credential set adheres to. This was very useful for claims, we use it for data migrations when the claim spec changes, and it is best to have it _before_ we need to change the spec. Worst case we never change the spec and we all win. Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com> * Fix comment Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com> * Add constructor for CredentialSet * Ensure that SchemaVersion is set on new CredentialSets. * Try a new pattern for the default schema that doesn't involve checking for errors parsing the spec constant. We test the spec constant in our tests and people can rely on us having set it properly. Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: staging | ||
schemaVersion: "1.0.0-DRAFT+b6c701f" | ||
credentials: | ||
- name: read_file | ||
source: | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: staging | ||
schemaVersion: "1.0.0-DRAFT+b6c701f" | ||
credentials: | ||
- name: read_file | ||
source: | ||
|