Skip to content

Commit

Permalink
fix(docs): example using word_id instead of id
Browse files Browse the repository at this point in the history
  • Loading branch information
simongoricar committed Feb 26, 2024
1 parent 19e5996 commit ad7cfd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kolomoni/src/api/v1/dictionary/english_word.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async fn fetch_additional_english_word_information(
#[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Debug, ToSchema)]
#[schema(
example = json!({
"word_id": "018dbe00-266e-7398-abd2-0906df0aa345",
"id": "018dbe00-266e-7398-abd2-0906df0aa345",
"lemma": "adventurer",
"disambiguation": "character",
"description": "Playable or non-playable character.",
Expand All @@ -126,7 +126,7 @@ async fn fetch_additional_english_word_information(
"suggested_translations": [],
"translations": [
{
"word_id": "018dbe00-266e-7398-abd2-0906df0aa346",
"id": "018dbe00-266e-7398-abd2-0906df0aa346",
"lemma": "pustolovec",
"disambiguation": "lik",
"description": "Igrani ali neigrani liki, ki se odpravijo na pustolovščino.",
Expand Down
2 changes: 1 addition & 1 deletion kolomoni/src/api/v1/dictionary/slovene_word.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use crate::{
#[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Debug, ToSchema)]
#[schema(
example = json!({
"word_id": "018dbe00-266e-7398-abd2-0906df0aa345",
"id": "018dbe00-266e-7398-abd2-0906df0aa345",
"lemma": "pustolovec",
"disambiguation": "lik",
"description": "Igrani ali neigrani liki, ki se odpravijo na pustolovščino.",
Expand Down

0 comments on commit ad7cfd4

Please sign in to comment.