Skip to content

Commit

Permalink
Fix deprecation warning from nimble_options
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotto committed Nov 26, 2020
1 parent 7f518ea commit bf06f00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/sparql_client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,19 @@ defmodule SPARQL.Client do
@query_options_schema @general_options_schema ++
[
protocol_version: [
type: {:one_of, ["1.0", "1.1"]},
type: {:in, ["1.0", "1.1"]},
subsection: "Specifying the request method"
],
request_method: [
type: {:one_of, [:get, :post]},
type: {:in, [:get, :post]},
subsection: "Specifying the request method"
],
accept_header: [
type: :string
],
result_format: [
type:
{:one_of,
{:in,
(SPARQL.result_formats() ++ RDF.Serialization.formats())
|> Enum.map(fn format -> format.name end)},
subsection: "Specifying the response format"
Expand Down Expand Up @@ -326,7 +326,7 @@ defmodule SPARQL.Client do
@update_options_schema @general_options_schema ++
[
request_method: [
type: {:one_of, [:direct, :url_encoded]},
type: {:in, [:direct, :url_encoded]},
subsection: "Specifying the request method"
]
]
Expand Down

0 comments on commit bf06f00

Please sign in to comment.