| 1 | package JSON::Schema::Generator::Handler::Union; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | sub process { |
|
Subroutine
process: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 7 | 1 | my ($class, $union_type, $examples, $dispatch) = @_; | |
| 8 | return +{ | ||
| 9 | 1 | type => [ map { $_->name } @{$union_type->types} ], | |
| 10 | example => $examples->[0], | ||
| 11 | }; | ||
| 12 | } | ||
| 13 | |||
| 14 | 2 | 1; | |