Skip to content

Commit

Permalink
Align optionality of content filter categories (#24819)
Browse files Browse the repository at this point in the history
  • Loading branch information
trrwilson authored Jul 13, 2023
1 parent 0c958e3 commit df34995
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ model ContentFilterResults {
those portrayed as an assault or a forced sexual violent act against one’s will,
prostitution, pornography, and abuse.
""")
sexual: ContentFilterResult;
sexual?: ContentFilterResult;

@doc("""
Describes language related to physical actions intended to hurt, injure, damage, or
kill someone or something; describes weapons, etc.
""")
violence: ContentFilterResult;
violence?: ContentFilterResult;

@doc("""
Describes language attacks or uses that include pejorative or discriminatory language
Expand All @@ -113,14 +113,14 @@ model ContentFilterResults {
gender identity and expression, sexual orientation, religion, immigration status, ability
status, personal appearance, and body size.
""")
hate: ContentFilterResult;
hate?: ContentFilterResult;

@doc("""
Describes language related to physical actions intended to purposely hurt, injure,
or damage one’s body, or kill oneself.
""")
@projectedName("json", "self_harm")
selfHarm: ContentFilterResult;
selfHarm?: ContentFilterResult;
}

@added(ServiceApiVersions.v2023_06_01_Preview)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -972,13 +972,7 @@
"description": "Describes language related to physical actions intended to purposely hurt, injure,\nor damage one’s body, or kill oneself.",
"x-ms-client-name": "selfHarm"
}
},
"required": [
"sexual",
"violence",
"hate",
"self_harm"
]
}
},
"ContentFilterSeverity": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1005,13 +1005,7 @@
"description": "Describes language related to physical actions intended to purposely hurt, injure,\nor damage one’s body, or kill oneself.",
"x-ms-client-name": "selfHarm"
}
},
"required": [
"sexual",
"violence",
"hate",
"self_harm"
]
}
},
"ContentFilterSeverity": {
"type": "string",
Expand Down

0 comments on commit df34995

Please sign in to comment.