Skip to content

Commit

Permalink
revert previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gbicann committed Jul 2, 2024
1 parent 3abb617 commit 1fb6742
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
22 changes: 0 additions & 22 deletions bin/generate-input-parameter-schema.pl
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,6 @@

$schema->{$name}->{'description'} = $meta{'Description'};
$schema->{$name}->{'example'} = $meta{'Example'} if (exists($meta{'Example'}));

if ('url' eq $schema->{$name}->{format}) {
$schema->{$name}->{'x-constraints'} = '@ValidUrl';
}

if ('hostname' eq $schema->{$name}->{format}) {
$schema->{$name}->{'x-constraints'} = '@ValidHostname';
}

if ('array' eq $schema->{$name}->{type}) {
if ('hostname' eq $schema->{$name}->{items}->{format}) {
$schema->{$name}->{'x-constraints'} = '@ValidHostnameList';
}

if ('ipv4' eq $schema->{$name}->{items}->{format}) {
$schema->{$name}->{'x-constraints'} = '@ValidIpv4List';
}

if ('ipv6' eq $schema->{$name}->{items}->{format}) {
$schema->{$name}->{'x-constraints'} = '@ValidIpv6List';
}
}
}

say STDERR 'generating YAML fragment for input parameter schemas...';
Expand Down
4 changes: 0 additions & 4 deletions rst-api-spec.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ info:

### Change Log

* 2024-07-02:
* `x-constraints` properties have been added to input parameter schemas,
where appropriate, to facilitate automated validation in Java
applications.
* 2024-06-26:
* added the `/v1/resource/{file}` endpoint.
* 2024-06-05:
Expand Down

0 comments on commit 1fb6742

Please sign in to comment.