radicle: Use `defaultBranch` for payload key
This was changed by mistake from the previous format used in radicle link. We restore all keys to camel-case. Signed-off-by: Alexis Sellier <alexis@radicle.xyz>
This commit is contained in:
parent
5f80ee9671
commit
66d76d7ab2
|
|
@ -11,11 +11,11 @@ ok Project heartwood created
|
||||||
{
|
{
|
||||||
"name": "heartwood",
|
"name": "heartwood",
|
||||||
"description": "Radicle Heartwood Protocol & Stack",
|
"description": "Radicle Heartwood Protocol & Stack",
|
||||||
"default-branch": "master"
|
"defaultBranch": "master"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Your project id is rad:zb2rNRYmmz7SLZ7xMjM7dddswC3K. You can show it any time by running:
|
Your project id is rad:z2TBtGrJKGsremYAPec6vN4n77Ba7. You can show it any time by running:
|
||||||
rad .
|
rad .
|
||||||
|
|
||||||
To publish your project to the network, run:
|
To publish your project to the network, run:
|
||||||
|
|
@ -27,5 +27,5 @@ Projects can be listed with the `ls` command:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ rad ls
|
$ rad ls
|
||||||
heartwood rad:zb2rNRYmmz7SLZ7xMjM7dddswC3K cdf76ce Radicle Heartwood Protocol & Stack
|
heartwood rad:z2TBtGrJKGsremYAPec6vN4n77Ba7 cdf76ce Radicle Heartwood Protocol & Stack
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -69,11 +69,11 @@ impl DocError {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "kebab-case")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Payload {
|
pub struct Payload {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub description: String, // TODO: Make optional.
|
pub description: String,
|
||||||
pub default_branch: git::RefString, // TODO: Make optional.
|
pub default_branch: git::RefString,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
|
||||||
|
|
@ -82,6 +82,7 @@ pub struct Payload {
|
||||||
pub struct Namespace(String);
|
pub struct Namespace(String);
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Doc<V> {
|
pub struct Doc<V> {
|
||||||
#[serde(rename = "xyz.radicle.project")]
|
#[serde(rename = "xyz.radicle.project")]
|
||||||
pub payload: Payload,
|
pub payload: Payload,
|
||||||
|
|
@ -501,7 +502,7 @@ mod test {
|
||||||
);
|
);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
id.to_human(),
|
id.to_human(),
|
||||||
String::from("rad:zb2rNRYmmz7SLZ7xMjM7dddswC3K")
|
String::from("rad:z2TBtGrJKGsremYAPec6vN4n77Ba7")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue