Skip to content

Commit

Permalink
chore: make backwards compatible, fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jul 2, 2024
1 parent c759ce1 commit f3dcb80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/open_api_spex/inspect/for_schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ defimpl Inspect, for: OpenApiSpex.Schema do
Map.has_key?(map, field),
do: info

Inspect.Map.inspect(map, Macro.inspect_atom(:literal, OpenApiSpex.Schema), infos, opts)
Inspect.Map.inspect(map, to_doc(OpenApiSpex.Schema, opts), infos, opts)
end
end
2 changes: 1 addition & 1 deletion test/inspect/for_schema_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ defmodule OpenApiSpex.Inspect.ForSchemaTest do
test "inspect schema" do

Check failure on line 5 in test/inspect/for_schema_test.exs

View workflow job for this annotation

GitHub Actions / Test (OTP 25 / Elixir 1.13)

test inspect schema (OpenApiSpex.Inspect.ForSchemaTest)

Check failure on line 5 in test/inspect/for_schema_test.exs

View workflow job for this annotation

GitHub Actions / Test (OTP 23 / Elixir 1.12)

test inspect schema (OpenApiSpex.Inspect.ForSchemaTest)

Check failure on line 5 in test/inspect/for_schema_test.exs

View workflow job for this annotation

GitHub Actions / Test (OTP 23 / Elixir 1.11)

test inspect schema (OpenApiSpex.Inspect.ForSchemaTest)

Check failure on line 5 in test/inspect/for_schema_test.exs

View workflow job for this annotation

GitHub Actions / Test (OTP 23 / Elixir 1.13)

test inspect schema (OpenApiSpex.Inspect.ForSchemaTest)
schema = %Schema{title: "Hello"}
output = inspect(schema)
assert output == "%OpenApiSpex.Schema%{title: \"Hello\"}"
assert output == "%OpenApiSpex.Schema{title: \"Hello\"}"
end
end

0 comments on commit f3dcb80

Please sign in to comment.