Skip to content

Commit 9c968e9

Browse files
fix media type
1 parent ea9950f commit 9c968e9

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,4 @@ dist/
6262

6363
demo/*.json
6464
!demo/apis.json
65+
!demo/models/avro.json

demo/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class ApiDemo extends ApiDemoPage {
6666
_apiListTemplate() {
6767
return [
6868
['demo-api', 'Demo API'],
69+
['avro', 'avro'],
6970
['examples-api', 'Examples render demo'],
7071
['raml-types', 'RAML types with raml examples'],
7172
['caro-api', 'Carolina API issue'],

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ApiBodyDocumentElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ export class ApiBodyDocumentElement extends AmfHelperMixin(LitElement) {
438438
return undefined;
439439
}
440440
const data = body[selected];
441-
return /** @type string */ (this._getValue(data, this.ns.aml.vocabularies.core.mediaType));
441+
return /** @type string */ (this._getValue(data, this.ns.aml.vocabularies.core.mediaType) || this._getValue(data, this.ns.aml.vocabularies.apiContract.schemaMediaType));
442442
}
443443

444444
/**

0 commit comments

Comments
 (0)