Skip to content

Commit

Permalink
Avoid doing_it_wrong warning caused by `rest_validate_value_from_sc…
Browse files Browse the repository at this point in the history
…hema()` (#7)

* Avoid `doing_it_wrong` warning caused by `rest_validate_value_from_schema()`

* Improve the `autoblue_shares` REST schema

Set the format argument to `uri` for the `uri` & `at_uri` props.

Props @danielpost
  • Loading branch information
imath authored Jan 15, 2025
1 parent 4879755 commit b4c51a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions includes/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ public function register_post_meta(): void {
'required' => true,
],
'uri' => [
'type' => 'uri',
'type' => 'string',
'format' => 'uri',
'required' => true,
],
'at_uri' => [
'type' => 'uri',
'type' => 'string',
'format' => 'uri',
],
'response' => [
'type' => 'string',
Expand Down

0 comments on commit b4c51a5

Please sign in to comment.