Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Oct 7, 2024
1 parent cb253bc commit c584066
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/spark/options/docs.ex
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,10 @@ defmodule Spark.Options.Docs do

def dsl_docs_type({:one_of, values}), do: dsl_docs_type({:in, values})
def dsl_docs_type({:in, values}), do: Enum.map_join(values, " | ", &inspect/1)
def dsl_docs_type({:or, subtypes}), do: subtypes |> Enum.map(&dsl_docs_type/1) |> Enum.uniq() |> Enum.join(" | ")

def dsl_docs_type({:or, subtypes}),
do: subtypes |> Enum.map(&dsl_docs_type/1) |> Enum.uniq() |> Enum.join(" | ")

def dsl_docs_type({:list, subtype}), do: "list(#{dsl_docs_type(subtype)})"
def dsl_docs_type(:quoted), do: "any"

Expand Down

0 comments on commit c584066

Please sign in to comment.