miscellaneous bugfixes

This commit is contained in:
Aiden McClelland
2024-04-08 14:01:16 -06:00
parent c13d8f3699
commit 313e415ee9
3 changed files with 7 additions and 5 deletions

View File

@@ -1,6 +1,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { HostId } from "./HostId";
export type GetServicePortForwardParams = { export type GetServicePortForwardParams = {
packageId: string | null; packageId: string | null;
internalPort: number; internalPort: number;
hostId: HostId;
}; };

View File

@@ -324,7 +324,7 @@ pub struct UiParams {
// #[command(display(display_serializable))] // #[command(display(display_serializable))]
#[instrument(skip_all)] #[instrument(skip_all)]
pub async fn ui(ctx: RpcContext, UiParams { pointer, value, .. }: UiParams) -> Result<(), Error> { pub async fn ui(ctx: RpcContext, UiParams { pointer, value, .. }: UiParams) -> Result<(), Error> {
let ptr = "/ui" let ptr = "/public/ui"
.parse::<JsonPointer>() .parse::<JsonPointer>()
.with_kind(ErrorKind::Database)? .with_kind(ErrorKind::Database)?
+ &pointer; + &pointer;

View File

@@ -19,7 +19,7 @@ fn current_version() -> Version {
} }
#[derive(Clone, Debug, Deserialize, Serialize, HasModel)] #[derive(Clone, Debug, Deserialize, Serialize, HasModel)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "kebab-case")]
#[model = "Model<Self>"] #[model = "Model<Self>"]
pub struct Manifest { pub struct Manifest {
#[serde(default = "current_version")] #[serde(default = "current_version")]
@@ -54,7 +54,7 @@ pub struct Manifest {
} }
#[derive(Clone, Debug, Deserialize, Serialize)] #[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "kebab-case")]
#[serde(tag = "type")] #[serde(tag = "type")]
pub enum DependencyRequirement { pub enum DependencyRequirement {
OptIn { how: String }, OptIn { how: String },
@@ -68,7 +68,7 @@ impl DependencyRequirement {
} }
#[derive(Clone, Debug, Deserialize, Serialize, HasModel)] #[derive(Clone, Debug, Deserialize, Serialize, HasModel)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "kebab-case")]
#[model = "Model<Self>"] #[model = "Model<Self>"]
pub struct DepInfo { pub struct DepInfo {
pub version: VersionRange, pub version: VersionRange,
@@ -77,7 +77,7 @@ pub struct DepInfo {
} }
#[derive(Clone, Debug, Default, Deserialize, Serialize)] #[derive(Clone, Debug, Default, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "kebab-case")]
pub struct Assets { pub struct Assets {
#[serde(default)] #[serde(default)]
pub license: Option<PathBuf>, pub license: Option<PathBuf>,