-
Notifications
You must be signed in to change notification settings - Fork 198
Custom description for schema #388
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
Comments
Hi @vinibrsl 👋, glad to hear OpenApiSpex is helping you 👍 For your You could try to approximate it with something like:
|
If you're up for sending a PR to OpenApiSpex, I think the fix would be to add Your example then becomes:
We could also add a helper function to clear it up a bit, something like:
|
Hello, y'all! 👋
Thank you for building
open_api_spex
. This is helping us to build well documented APIs in Elixir.I have a
Money
schema used in other schemas. I would like to have the option to define a custom description when usingMoney
. For example:I tried the above, defining
type: MyApp.OpenApi.Money
, but this seems to be invalid. If I usefield: MyApp.OpenApi.Money
, I can't define thedescription
.Is there a solution for this?
The text was updated successfully, but these errors were encountered: