Skip to content

Commit a59aedf

Browse files
authored
Fix MediaTypeObject encoding type (#1206)
1 parent c753f7b commit a59aedf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/openapi-typescript/src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export interface MediaTypeObject extends Extensable {
282282
/** Examples of the media type. Each example object SHOULD match the media type and specified schema if present. The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains an example, the examples value SHALL override the example provided by the schema. */
283283
examples?: { [name: string]: ExampleObject | ReferenceObject };
284284
/** A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is multipart or application/x-www-form-urlencoded. */
285-
encoding?: { [contentType: string]: EncodingObject };
285+
encoding?: { [propertyName: string]: EncodingObject };
286286
}
287287

288288
/**

0 commit comments

Comments
 (0)