Skip to content

Commit

Permalink
Fix PEX '_type' to 'r#type', add git submodule to just setup recipe (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe authored May 10, 2024
1 parent dcc0283 commit 612b2c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set shell := ["bash", "-uc"]
# Setup local development environment
setup:
#!/bin/bash
git submodule update --init --recursive
if [[ "$(cargo 2>&1)" == *"rustup could not choose a version of cargo to run"* ]]; then
rustup default 1.78.0
fi
Expand Down
6 changes: 3 additions & 3 deletions crates/credentials/src/presentation_definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl InputDescriptor {

struct JsonSchemaBuilder {
schema: String,
_type: String,
r#type: String,
properties: Map<String, Value>,
required: Vec<String>,
}
Expand All @@ -212,7 +212,7 @@ impl JsonSchemaBuilder {
pub fn new() -> Self {
JsonSchemaBuilder {
schema: "http://json-schema.org/draft-07/schema#".to_string(),
_type: "object".to_string(),
r#type: "object".to_string(),
properties: Map::new(),
required: Vec::new(),
}
Expand All @@ -226,7 +226,7 @@ impl JsonSchemaBuilder {
pub fn to_json(&self) -> Value {
json!({
"$schema": self.schema,
"type": self._type,
"type": self.r#type,
"properties": self.properties,
"required": self.required,
})
Expand Down

0 comments on commit 612b2c2

Please sign in to comment.