Skip to content

Commit

Permalink
Rework openapi & update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Dec 4, 2024
1 parent 7fbf773 commit 92a9984
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ jobs:
push: true
build-args: |
BINARY_NAME=v3x-property-engine
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion engine/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion engine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "v3x-property-engine"
version = "0.1.0"
version = "0.0.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
5 changes: 2 additions & 3 deletions engine/src/routes/items/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
use std::sync::Arc;

use poem::{
web::{Data, Path, Query},
Result,
web::Data, Result
};
use poem_openapi::{payload::Json, Object, OpenApi};
use poem_openapi::{param::{Path, Query}, payload::Json, Object, OpenApi};
use reqwest::StatusCode;
use serde::{Deserialize, Serialize};
use tracing::info;
Expand Down
4 changes: 2 additions & 2 deletions engine/src/routes/media/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::sync::Arc;

use poem::{
web::{Data, Multipart, Path, Query},
web::{Data, Multipart},
Result,
};
use poem_openapi::{payload::Json, Object, OpenApi};
use poem_openapi::{param::{Path, Query}, payload::Json, Object, OpenApi};
use reqwest::StatusCode;
use serde::{Deserialize, Serialize};

Expand Down
4 changes: 2 additions & 2 deletions engine/src/routes/search/tasks.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::sync::Arc;

use poem::web::{Data, Path};
use poem::web::Data;
use poem::{Error, Result};
use poem_openapi::{payload::Json, OpenApi};
use poem_openapi::{param::Path, payload::Json, OpenApi};
use reqwest::StatusCode;
use tracing::info;

Expand Down
4 changes: 2 additions & 2 deletions engine/src/routes/sessions/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::sync::Arc;

use poem::{web::{Data, Path}, Error, Result};
use poem_openapi::{payload::Json, OpenApi};
use poem::{web::Data, Error, Result};
use poem_openapi::{param::Path, payload::Json, OpenApi};
use reqwest::StatusCode;
use tracing::info;

Expand Down
4 changes: 2 additions & 2 deletions engine/src/routes/users/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::sync::Arc;

use poem::web::{Data, Path};
use poem_openapi::{payload::Json, OpenApi};
use poem::web::Data;
use poem_openapi::{param::Path, payload::Json, OpenApi};

use crate::{
models::user::{user::User, userentry::UserEntry},
Expand Down

0 comments on commit 92a9984

Please sign in to comment.