Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed Jun 22, 2023
1 parent d6cd5e5 commit 98311e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/openapi/auth-basic/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use poem_openapi::{auth::Basic, payload::PlainText, OpenApi, OpenApiService, Sec
/// - User: `test`
/// - Password: `123456`
#[derive(SecurityScheme)]
#[oai(type = "basic")]
#[oai(ty = "basic")]
struct MyBasicAuthorization(Basic);

struct Api;
Expand Down
2 changes: 1 addition & 1 deletion examples/openapi/auth-github/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ enum GithubScopes {
/// - client_secret: `622cfd4c7168c43e09b0db1a18675dbcc5c0808b`
#[derive(SecurityScheme)]
#[oai(
type = "oauth2",
ty = "oauth2",
flows(authorization_code(
authorization_url = "https://github.com/login/oauth/authorize",
token_url = "http://localhost:3000/proxy",
Expand Down
2 changes: 1 addition & 1 deletion examples/poem/async-graphql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ publish.workspace = true
[dependencies]
poem.workspace = true
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
async-graphql = "4.0.6"
async-graphql = "5.0.10"
slab = "0.4.4"
tracing-subscriber.workspace = true

0 comments on commit 98311e5

Please sign in to comment.