fix(cli): operation response type exhaustive
This commit is contained in:
parent
b6993ce02e
commit
8726ea91eb
|
@ -259,6 +259,7 @@ impl Generator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
crate::method::OperationResponseKind::Raw
|
crate::method::OperationResponseKind::Raw
|
||||||
|
| crate::method::OperationResponseKind::Multi(_)
|
||||||
| crate::method::OperationResponseKind::Upgrade => {
|
| crate::method::OperationResponseKind::Upgrade => {
|
||||||
quote! {
|
quote! {
|
||||||
{
|
{
|
||||||
|
@ -279,6 +280,7 @@ impl Generator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
crate::method::OperationResponseKind::Raw
|
crate::method::OperationResponseKind::Raw
|
||||||
|
| crate::method::OperationResponseKind::Multi(_)
|
||||||
| crate::method::OperationResponseKind::Upgrade => {
|
| crate::method::OperationResponseKind::Upgrade => {
|
||||||
quote! {
|
quote! {
|
||||||
{
|
{
|
||||||
|
@ -306,6 +308,7 @@ impl Generator {
|
||||||
}
|
}
|
||||||
crate::method::OperationResponseKind::None => quote! { () },
|
crate::method::OperationResponseKind::None => quote! { () },
|
||||||
crate::method::OperationResponseKind::Raw => todo!(),
|
crate::method::OperationResponseKind::Raw => todo!(),
|
||||||
|
crate::method::OperationResponseKind::Multi(_) => todo!(),
|
||||||
crate::method::OperationResponseKind::Upgrade => todo!(),
|
crate::method::OperationResponseKind::Upgrade => todo!(),
|
||||||
};
|
};
|
||||||
let error_output = match error_kind {
|
let error_output = match error_kind {
|
||||||
|
@ -319,6 +322,7 @@ impl Generator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
crate::method::OperationResponseKind::Raw
|
crate::method::OperationResponseKind::Raw
|
||||||
|
| crate::method::OperationResponseKind::Multi(_)
|
||||||
| crate::method::OperationResponseKind::Upgrade => {
|
| crate::method::OperationResponseKind::Upgrade => {
|
||||||
quote! {
|
quote! {
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue