Skip to content

Commit 6119ce8

Browse files
committed
fix: use null as a notSetValue for examplesForMediaType
fixes #5455
1 parent f53e611 commit 6119ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/plugins/oas3/components/request-body.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const RequestBody = ({
6767

6868
const mediaTypeValue = requestBodyContent.get(contentType, OrderedMap())
6969
const schemaForMediaType = mediaTypeValue.get("schema", OrderedMap())
70-
const examplesForMediaType = mediaTypeValue.get("examples", OrderedMap())
70+
const examplesForMediaType = mediaTypeValue.get("examples", null)
7171

7272
const handleExamplesSelect = (key /*, { isSyntheticChange } */) => {
7373
updateActiveExamplesKey(key)

0 commit comments

Comments
 (0)