forked from loafle/openapi-generator-original
update samples
This commit is contained in:
parent
b4154be8d0
commit
370d0e82f8
@ -1 +1 @@
|
|||||||
5.0.0-SNAPSHOT
|
5.0.1-SNAPSHOT
|
@ -29,7 +29,7 @@ openssl = {version = "0.10", optional = true }
|
|||||||
async-trait = "0.1.24"
|
async-trait = "0.1.24"
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
chrono = { version = "0.4", features = ["serde"] }
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
swagger = "5.0.0-alpha-1"
|
swagger = "5.0.2"
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
mime = "0.3"
|
mime = "0.3"
|
||||||
|
|
||||||
|
@ -5,13 +5,14 @@ use futures::Stream;
|
|||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::task::{Poll, Context};
|
use std::task::{Poll, Context};
|
||||||
use swagger::{ApiError, ContextWrapper};
|
use swagger::{ApiError, ContextWrapper};
|
||||||
|
use serde::{Serialize, Deserialize};
|
||||||
|
|
||||||
type ServiceError = Box<dyn Error + Send + Sync + 'static>;
|
type ServiceError = Box<dyn Error + Send + Sync + 'static>;
|
||||||
|
|
||||||
pub const BASE_PATH: &'static str = "";
|
pub const BASE_PATH: &'static str = "";
|
||||||
pub const API_VERSION: &'static str = "1.0";
|
pub const API_VERSION: &'static str = "1.0";
|
||||||
|
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub enum PingGetResponse {
|
pub enum PingGetResponse {
|
||||||
/// OK
|
/// OK
|
||||||
OK
|
OK
|
||||||
|
@ -3,4 +3,3 @@
|
|||||||
use crate::models;
|
use crate::models;
|
||||||
#[cfg(any(feature = "client", feature = "server"))]
|
#[cfg(any(feature = "client", feature = "server"))]
|
||||||
use crate::header;
|
use crate::header;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user