Group
Extension

Matches 35358

CSAF ( G/GD/GDT/CSAF-0.26.tar.gz, GDT, 2025; MetaCPAN )
CSAF/lib/CSAF/Type/CVSS3.pm ( view source; MetaCPAN )
t->{$attribute} = $self->$attribute if ($self->$attribute);
    }

    return $output;

}

sub TO_JSON { shift->TO_CSAF }

1;

__END__

=encoding utf-8

=head1 NAME

CSAF::Type::CVSS3

=head1 SYNOPSIS
Event-RPC ( J/JR/JRED/Event-RPC-1.11.tar.gz, JRED, 2025; MetaCPAN )
Event-RPC/lib/Event/RPC/Server.pm ( view source; MetaCPAN )
ules => 1,
      connection_hook     => sub { ... },

      message_formats     => [qw/ SERL CBOR JSON STOR /],
      insecure_msg_fmt_ok => 1,
  );

  $server->set_max_packet_size(2*1024*1024*1024);
amed "message formats" here:

  SERL -- Sereal::Encoder, Sereal::Decoder
  CBOR -- CBOR::XS
  JSON -- JSON::XS
  STOR -- Storable

Server and client negotiate automatically which format is
best to use
Catmandu ( N/NI/NICS/Catmandu-1.2025.tar.gz, NICS, 2025; MetaCPAN )
Catmandu/lib/Catmandu/Fix/Bind/importer.pm ( view source; MetaCPAN )
ove_field(n,brol)
        add_to_exporter(.,JSON)

        do importer(Mock,size:20,step:true)
            move_field(n,m)
            add_to_exporter(.,JSON)
        end
    end

=head1 SEE ALSO

L<C
Event-RPC ( J/JR/JRED/Event-RPC-1.11.tar.gz, JRED, 2025; MetaCPAN )
Event-RPC/lib/Event/RPC/Message/Negotiate.pm ( view source; MetaCPAN )
vent::RPC::Message::CBOR",
    "JSON"  => "Event::RPC::Message::JSON",
    "STOR"  => "Event::RPC::Message::Storable",
);

my @MESSAGE_FORMAT_ORDER = qw( SERL CBOR JSON STOR );

sub known_message_form
CSAF ( G/GD/GDT/CSAF-0.26.tar.gz, GDT, 2025; MetaCPAN )
CSAF/lib/CSAF/Util/List.pm ( view source; MetaCPAN )
->[0] }
sub last  { shift->items->[-1] }
sub join  { join($_[1] // '', @{$_[0]->items}) }

sub TO_JSON { [@{shift->items}] }

1;

__END__

=encoding utf-8

=head1 NAME

CSAF::Util::List - (Mojo like) 
head1 DESCRIPTION

L<CSAF::Util::List> is a collection utility.


=head2 METHODS

=over

=item TO_JSON

Alias for L</"to_array">.

=item add

Alias for L</"item">.

=item each

Evaluate callback for e
CSAF ( G/GD/GDT/CSAF-0.26.tar.gz, GDT, 2025; MetaCPAN )
CSAF/lib/CSAF/Type/List.pm ( view source; MetaCPAN )
n $item;
    }

    Carp::croak "Failed to load item class '$item_class': $@" if ($@);

}

sub TO_JSON { shift->TO_CSAF }

sub TO_CSAF {

    my $self   = shift;
    my $output = [];

    foreach my $
Catmandu ( N/NI/NICS/Catmandu-1.2025.tar.gz, NICS, 2025; MetaCPAN )
Catmandu/lib/Catmandu/Fix/Condition/valid.pm ( view source; MetaCPAN )
to a schema
    select valid('', JSONSchema, schema: "my/schema.json")

    # check the author field
    unless valid(author, JSONSchema, schema: "my/author.schema.json")
       ... # repair or give w
DBD-KB ( H/HQ/HQWANG/DBD-KB-3.18.5.tar.gz, HQWANG, 2025; MetaCPAN )
DBD-KB/types.h ( view source; MetaCPAN )
_INTERVAL  1186
#define                           PG_JSON  114
#define                          PG_JSONB  3802
#define                       PG_JSONPATH  4072
#define               PG_LANGUAGE_HANDLER
_INTERVALARRAY  1187
#define                      PG_JSONARRAY  199
#define                     PG_JSONBARRAY  3807
#define                  PG_JSONPATHARRAY  4073
#define                      PG_LINE
DBD-KB ( H/HQ/HQWANG/DBD-KB-3.18.5.tar.gz, HQWANG, 2025; MetaCPAN )
DBD-KB/KB.xs ( view source; MetaCPAN )
7
    PG_JSON                           = 114
    PG_JSONARRAY                      = 199
    PG_JSONB                          = 3802
    PG_JSONBARRAY                     = 3807
    PG_JSONPATH     
                  = 4072
    PG_JSONPATHARRAY                  = 4073
    PG_LANGUAGE_HANDLER               = 2280
    PG_LINE                           = 628
    PG_LINEARRAY                      = 6
CSAF ( G/GD/GDT/CSAF-0.26.tar.gz, GDT, 2025; MetaCPAN )
CSAF/lib/CSAF/Validator/Message.pm ( view source; MetaCPAN )
 %s (%s - %s)', $_[0]->type, $_[0]->path, $_[0]->message, $_[0]->code, $_[0]->category;
}

sub TO_JSON {

    return {
        type     => $_[0]->type,
        category => $_[0]->category,
        mes


=item path

=item type

=item category

=back

=head2 METHODS

=over

=item to_string

=item TO_JSON

=back

=head1 SUPPORT

=head2 Bugs / Feature Requests

Please report any bugs or feature request
CSAF ( G/GD/GDT/CSAF-0.26.tar.gz, GDT, 2025; MetaCPAN )
CSAF/lib/CSAF/Validator/Schema.pm ( view source; MetaCPAN )
;


__END__

=encoding utf-8

=head1 NAME

CSAF::Validator::Schema - Validate CSAF document using JSON Schema.

=head1 SYNOPSIS

    use CSAF::Validator::Schema;

    my $v = CSAF::Validator::Schema->
CSAF ( G/GD/GDT/CSAF-0.26.tar.gz, GDT, 2025; MetaCPAN )
CSAF/lib/CSAF/Renderer.pm ( view source; MetaCPAN )
AF::Renderer::JSON;
use CSAF::Renderer::HTML;

use Moo;
extends 'CSAF::Renderer::Base';

sub render {

    my ($self, %options) = @_;

    my $format = delete $options{'format'} || 'json';

    my $re
nderer = {
        json => sub { CSAF::Renderer::JSON->new($self->csaf) },
        html => sub { CSAF::Renderer::HTML->new($self->csaf) },
    };

    if (defined $renderer->{lc $format}) {
        re
)

Render a CSAF document.

Available options:

=over

=item format

Specify the render format (B<json> default, B<html>).

=back

=back


=head1 SUPPORT

=head2 Bugs / Feature Requests

Please report
ThreatDetector ( J/JH/JHALL/ThreatDetector-0.04.tar.gz, JHALL, 2025; MetaCPAN )
ThreatDetector/lib/ThreatDetector/Handlers/LoginBruteForce.pm ( view source; MetaCPAN )
atDetector::Handlers::LoginBruteForce;

use strict;
use warnings;
use Exporter 'import';
use JSON;
use Time::HiRes qw(gettimeofday);

our $VERBOSE = 0;
our @EXPORT_OK = qw(handle_login_brutef
r    => $entry->{referer} || '',
    };
    push @BRUTE_FORCE_EVENTS, $alert;
    print encode_json($alert) . "\n" if $VERBOSE;
}

sub get_login_brute_force_events {
  return @BRUTE_FORCE_EVENT
handle_login_bruteforce);

  handle_login_bruteforce($entry);

=head1 DESCRIPTION

Prints a JSON alert for suspected brute-force login attempts. Typically used in conjunction with logic that det
ThreatDetector ( J/JH/JHALL/ThreatDetector-0.04.tar.gz, JHALL, 2025; MetaCPAN )
ThreatDetector/lib/ThreatDetector/Handlers/BotFingerprint.pm ( view source; MetaCPAN )
eatDetector::Handlers::BotFingerprint;

use strict;
use warnings;
use Exporter 'import';
use JSON;
use Time::HiRes qw(gettimeofday);

our $VERBOSE = 0;
our @EXPORT_OK = qw(handle_scanner get_
=> $entry->{user_agent},
    };
    push @SCANNER_FINGERPRINT_EVENTS, $alert;
    print encode_json($alert) . "\n" if $VERBOSE;
}

sub get_scanner_fingerprint_events {
  return @SCANNER_FINGERP
BotFingerprint qw(handle_scanner);

  handle_scanner($entry);

=head1 DESCRIPTION

Prints a JSON alert for any request that matches a known bad scanner or bot fingerprint in the user-agent strin
Catmandu ( N/NI/NICS/Catmandu-1.2025.tar.gz, NICS, 2025; MetaCPAN )
Catmandu/lib/Catmandu/Fix/import_from_string.pm ( view source; MetaCPAN )
orter.

=head1 SYNOPSIS

    #BEFORE: { 'json' => '[{"name":"Nicolas"}]' }
    #AFTER:  { 'json' => [{"name":"Nicolas"}] }

    import_from_string('json','JSON')

    #BEFORE: { record => qq(first_nam
choose:

* full package name of the importer (e.g. 'Catmandu::Importer::JSON')

* short package name of the importer (e.g. 'JSON')

* name of the importer as declared in the Catmandu configuration

=i
Catmandu ( N/NI/NICS/Catmandu-1.2025.tar.gz, NICS, 2025; MetaCPAN )
Catmandu/lib/Catmandu/Fix/Bind/hashmap.pm ( view source; MetaCPAN )
 = Catmandu->exporter($self->exporter, %$args);
    }
    else {
        $e = Catmandu->exporter('JSON', line_delimited => 1);
    }

    my $sorter = $self->count ? sub {$h->{$b} <=> $h->{$a}} : sub 
hashmap(join: ',')
    copy_field(isbn,key)
    copy_field(_id,value)
 end

 # will export to the JSON exporter a hash map containing all isbn occurrences in the stream

 { "_id": "9781565920422" , "v
bn,key)
 end

 # Use the Null exporter to suppress the normal output
 $ cat /tmp/data.json | catmandu convert JSON --fix count.fix to Null

=head1 DESCRIPTION

The hashmap binder will insert all key/v
CSAF ( G/GD/GDT/CSAF-0.26.tar.gz, GDT, 2025; MetaCPAN )
CSAF/lib/CSAF/Schema.pm ( view source; MetaCPAN )
il qw(schema_cache_path);
use JSON::Validator;


our %SCHEMAS = (
    'csaf-2.0'            => 'https://docs.oasis-open.org/csaf/csaf/v2.0/os/schemas/csaf_json_schema.json',
    'strict-csaf-2.0'     
g/csaf/csaf/v2.0/os/schemas/csaf_json_schema.json?strict',
    'csaf-2.0-provider'   => 'https://docs.oasis-open.org/csaf/csaf/v2.0/os/schemas/provider_json_schema.json',
    'csaf-2.0-aggregator' => 
/v2.0/os/schemas/aggregator_json_schema.json',

    'cvss-v3.1' => 'https://www.first.org/cvss/cvss-v3.1.json',
    'cvss-v3.0' => 'https://www.first.org/cvss/cvss-v3.0.json',
    'cvss-v2.0' => 'http
CVSS ( G/GD/GDT/CVSS-1.14.tar.gz, GDT, 2025; MetaCPAN )
CVSS/lib/CVSS.pm ( view source; MetaCPAN )
VSS XML Schema Definition
  $xml = $cvss->to_xml;

  # Convert CVSS in JSON in according of CVSS JSON Schema
  $json = encode_json($cvss);


  # exported functions

  use CVSS qw(decode_cvss encode_cv
asic, temporal, and environmental), convert the "vector string" and returns
the L<CVSS> object in JSON or XML.

The Common Vulnerability Scoring System (CVSS) provides a way to capture the
principal c
CSAF ( G/GD/GDT/CSAF-0.26.tar.gz, GDT, 2025; MetaCPAN )
CSAF/lib/CSAF/Writer.pm ( view source; MetaCPAN )
elf) = @_;

    my $csaf_id                   = $self->csaf->document->tracking->id;
    my $csaf_json                 = $self->csaf->renderer->render;
    my $csaf_directory            = $self->direc
_current_release_date = $self->csaf->document->tracking->current_release_date->datetime;

    my $json_file_path     = catfile($csaf_directory, $csaf_file_year, $csaf_filename);
    my $index_file_pat
ug("CSAF document         : $csaf_filename");
        $self->log->debug("CSAF document path    : $json_file_path");
        $self->log->debug("index.txt path        : $index_file_path");
        $self
Catmandu ( N/NI/NICS/Catmandu-1.2025.tar.gz, NICS, 2025; MetaCPAN )
Catmandu/lib/Catmandu/Fix/SimpleGetValue.pm ( view source; MetaCPAN )
IPTION

Catmandu::Fix::SimpleGetValue eases the creation of emit Fixes that transform
values on a JSON path. A Fix package implementing Catmandu::Fix::SimpleGetValue
needs to implement a method C<emit
atmandu::Fix. The method should
return a string containing the Perl code to transform values on a JSON path.

It is not possible to inspect in an emit Fix the actual value on which this Fix
runs: $var

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.