Skip to content

Commit

Permalink
Merge pull request #37 from golemfactory/fix-ui-lacking-schema
Browse files Browse the repository at this point in the history
Add schema before saving template
  • Loading branch information
nieznanysprawiciel authored Mar 25, 2024
2 parents dfea1af + 23957d6 commit a542ad3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ fn parse_timestamp(timestamp: &str) -> Result<DateTime<Utc>> {

fn create_key_pair(key_pair_path: &Path) -> Result<()> {
let key_pair = gcert::create_key_pair();
save_json_with_extension(key_pair_path, &key_pair.public_key, "pub")?;
save_json_with_extension(key_pair_path, &key_pair.private_key, "key")
save_json_with_extension(key_pair_path, &key_pair.public_key, "pub.json")?;
save_json_with_extension(key_pair_path, &key_pair.private_key, "key.json")
}

fn print_fingerprint(input_file_path: &Path) -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion cli/src/ui/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl DocumentEditor for CertificateEditor {
subject: Some(self.subject_editor.get_subject()),
validity_period: Some(self.validity_period_editor.get_validity_period()),
};
json!({ "certificate": certificate })
json!({ "$schema": SIGNED_CERTIFICATE_SCHEMA_ID, "certificate": certificate })
}

fn create_signed_document(
Expand Down

0 comments on commit a542ad3

Please sign in to comment.