Skip to content

Commit

Permalink
Version 1.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Dec 4, 2024
1 parent 1d07ad7 commit 97530e9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@johnbillion/wp-hooks-generator",
"version": "0.9.0",
"version": "1.0.0",
"description": "Generates a JSON representation of the WordPress actions and filters in your code",
"private": true,
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/wp-hooks/generator/blob/0.9.0/schema.json",
"$id": "https://github.com/wp-hooks/generator/blob/1.0.0/schema.json",
"title": "HooksContainer",
"description": "The container for the list of hooks",
"type": "object",
Expand Down
4 changes: 2 additions & 2 deletions src/generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ function parse_aliases( string $html ) : array {
} ) );

$actions = [
'$schema' => 'https://raw.githubusercontent.com/wp-hooks/generator/0.9.0/schema.json',
'$schema' => 'https://raw.githubusercontent.com/wp-hooks/generator/1.0.0/schema.json',
'hooks' => $actions,
];

Expand All @@ -505,7 +505,7 @@ function parse_aliases( string $html ) : array {
} ) );

$filters = [
'$schema' => 'https://raw.githubusercontent.com/wp-hooks/generator/0.9.0/schema.json',
'$schema' => 'https://raw.githubusercontent.com/wp-hooks/generator/1.0.0/schema.json',
'hooks' => $filters,
];

Expand Down
2 changes: 1 addition & 1 deletion src/validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

$data = json_decode(file_get_contents( $argv[1] ));
$validator = new Validator();
$id = 'https://github.com/wp-hooks/generator/blob/0.9.0/schema.json';
$id = 'https://github.com/wp-hooks/generator/blob/1.0.0/schema.json';
$validator->resolver()->registerFile(
$id,
'schema.json',
Expand Down

0 comments on commit 97530e9

Please sign in to comment.