(s)
| 52686 | } |
| 52687 | return !1 |
| 52688 | } |
| 52689 | async parse(s) { |
| 52690 | if (this.sourceMap) |
| 52691 | throw new jw("json-swagger-client parser plugin doesn't support sourceMaps option") |
| 52692 | const o = new Au(), |
| 52693 | i = s.toString() |
| 52694 | if (this.allowEmpty && '' === i.trim()) return o |
| 52695 | try { |
| 52696 | const s = transformers_from(JSON.parse(i)) |
| 52697 | return (s.classes.push('result'), o.push(s), o) |
| 52698 | } catch (o) { |
| 52699 | throw new jw(`Error parsing "${s.uri}"`, { cause: o }) |
| 52700 | } |
| 52701 | } |
| 52702 | } |
| 52703 | const Uw = class YAMLParser extends Pw { |
no test coverage detected