Skip to content

Commit

Permalink
Add CURIE for post_type, previously missing
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanjbrown committed Jul 22, 2016
1 parent eea9793 commit 46130d0
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 166 deletions.
3 changes: 2 additions & 1 deletion lib/wp_api_client/relationship.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def convert_uri_to_curie(uri)
"https://api.w.org/term" => "wp:term",
"https://api.w.org/items" => "wp:items",
"https://api.w.org/meta" => "wp:meta",
"https://api.w.org/featuredmedia" => "wp:featuredmedia"
"https://api.w.org/featuredmedia" => "wp:featuredmedia",
"http://api.w.org/v2/post_type" => "wp:post_type"
}
uri_curie_mappings.dig(uri) || uri
end
Expand Down
Loading

0 comments on commit 46130d0

Please sign in to comment.