#!/usr/bin/env perl

use strict;
use warnings FATAL => 'all';
use v5.12;
use Path::Class;
use FindBin;

do "$FindBin::RealBin/parse_spec_base.pl" || die $@;

my @files = map { file($_) } (
    '../elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/api/_common.json',
    glob
        '../elasticsearch-extra/x-pack-elasticsearch/plugin/src/test/resources/rest-api-spec/api/*.json'
);

process_files( 'lib/Search/Elasticsearch/Plugin/XPack/6_0/Role/API.pm',
    @files );

#!/usr/bin/env perl

use strict;
use warnings FATAL => 'all';
use v5.12;
use Path::Class;
use FindBin;

do "$FindBin::RealBin/parse_spec_base.pl" || die $@;

my @files = map { file($_) } (
    '../elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/api/_common.json',
    glob
        '../elasticsearch/x-pack/plugin/src/test/resources/rest-api-spec/api/*.json'
);

process_files( 'lib/Search/Elasticsearch/Plugin/XPack/6_0/Role/API.pm',
    @files );

Update source for X-Pack rest spec for 6.0
Update source for X-Pack rest spec for 6.0
