Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PEX '_type' to 'r#type', add git submodule to just setup recipe #195

Merged
merged 1 commit into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading