From 8992c8b978824748650afe227d75d17b72dec101 Mon Sep 17 00:00:00 2001 From: h3llka Date: Tue, 21 Oct 2025 17:36:27 +0300 Subject: [PATCH] fix : JOBS-8708-glossary-part-of-speech-values-doc-improvement --- .../command/GlossaryEntryCommandPTO.java | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/smartling-glossary-api/src/main/java/com/smartling/api/glossary/v3/pto/entry/command/GlossaryEntryCommandPTO.java b/smartling-glossary-api/src/main/java/com/smartling/api/glossary/v3/pto/entry/command/GlossaryEntryCommandPTO.java index 0cc78136..a07e9d12 100644 --- a/smartling-glossary-api/src/main/java/com/smartling/api/glossary/v3/pto/entry/command/GlossaryEntryCommandPTO.java +++ b/smartling-glossary-api/src/main/java/com/smartling/api/glossary/v3/pto/entry/command/GlossaryEntryCommandPTO.java @@ -22,16 +22,19 @@ public class GlossaryEntryCommandPTO { private String definition; /** * Glossary entry part of speech. - * One of : - * - Noun, - * - Verb, - * - Adjective, - * - Adverb, - * - Pronoun, - * - Preposition, - * - Interjection, - * - Conjunction, - * - Proper Noun. + * Supported values (case-insensitive): + * - NOUN / Noun + * - VERB / Verb + * - ADJECTIVE / Adjective + * - ADVERB / Adverb + * - PRONOUN / Pronoun + * - PREPOSITION / Preposition + * - INTERJECTION / Interjection + * - CONJUNCTION / Conjunction + * - PROPER_NOUN / "Proper Noun" + *

+ * The field accepts both uppercase enum constants and human-readable formats. + * Invalid values will result in deserialization errors with appropriate error handling. */ private String partOfSpeech; /**