Skip to content

Commit

Permalink
agent.json - added support for enableSpellCorrection
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Bezecny (DHL IT Services) authored and Adam Bezecny (DHL IT Services) committed May 20, 2021
1 parent 9d2dbca commit d030c72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Release overview:
| v0.1.4-beta | [Download here](../../releases/download/v0.1.4-beta/gdf_translate_v0.1.4-beta.zip) | Windows |
| v1.0.0 | [Download here](../../releases/download/v1.0.0/gdf_translate_v1.0.0.zip) | Windows |
| v1.0.1 | [Download here](../../releases/download/v1.0.1/gdf_translate_v1.0.1.zip) | Windows |
| v1.0.2 | [Download here](../../releases/download/v1.0.2/gdf_translate_v1.0.2.zip) | Windows |

## Service Account Requirements
Following Google APIs must be enabled on respective Google Cloud project:
Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl<'a> CommandLine<'a> {

pub fn get_cmd_line_parser<'a, 'b>() -> App<'a, 'b> {
App::new("Google DialogFlow Translate")
.version("v1.0.1")
.version("v1.0.2")
.author("Adam Bezecny")
.about("Tool for automated translation of Google DialogFlow agents.")
.arg(
Expand Down
5 changes: 5 additions & 0 deletions src/google/dialogflow/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ pub struct AgentManifest {

#[serde(rename = "baseActionPackagesUrl")]
pub base_action_packages_url: String,

#[serde(skip_serializing_if = "Option::is_none")]
#[serde(rename = "enableSpellCorrection")]
pub enable_spell_correction: Option<bool>,

}

#[derive(Debug)]
Expand Down

0 comments on commit d030c72

Please sign in to comment.