Skip to content

Commit

Permalink
fix: fix crash on empty media object
Browse files Browse the repository at this point in the history
fixes #608
  • Loading branch information
RomanHotsiy committed Aug 22, 2018
1 parent 5d84bd4 commit fb21212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/models/MediaType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class MediaTypeModel {
value: sample,
};
}
} else {
} else if (this.schema) {
this.examples = {
default: new ExampleModel(parser, {
value: Sampler.sample(
Expand Down

0 comments on commit fb21212

Please sign in to comment.