Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make EncodeJson/DecodeJson middlewares public #590

Merged
merged 1 commit into from
May 15, 2023

Conversation

whatyouhide
Copy link
Contributor

No description provided.

@@ -61,6 +64,7 @@ defmodule Tesla.Middleware.JSON do

It is used by `Tesla.Middleware.EncodeJson`.
"""
@spec encode(Tesla.Env.t(), keyword()) :: Tesla.Env.result()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added spec (here and below) since these functions are public.

Only decodes the body if the `Content-Type` header suggests
that the body is JSON.
"""
@moduledoc since: "1.8.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next version.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The funny part is that I do know people using the module already 😄

@yordis yordis merged commit e7c4371 into elixir-tesla:master May 15, 2023
@whatyouhide whatyouhide deleted the json-docs branch May 15, 2023 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants