# \#openapi

**URL:** https://forum.elixirforum.com/tag/openapi/2189.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Infusion - generate Elixir SDKs from OpenAPI specs](https://forum.elixirforum.com/t/infusion-generate-elixir-sdks-from-openapi-specs/77387)

<div class="topic-metadata">

**Author:** [@mandar1045](https://forum.elixirforum.com/u/mandar1045)\
**Replies:** 2\
**Last updated:** [November 15, 2026, 7:15am UTC](https://forum.elixirforum.com/t/infusion-generate-elixir-sdks-from-openapi-specs/77387 "2026-11-15T07:15:27Z")

</div>

Hey everyone, I’ve been working on something for the past while and finally published it, so I wanted to share. It’s called Infusion. You give it an OpenAPI spec and it writes a full Elixir SDK for that API. Structs fo…

---

## [Portolan - OpenAPI documentation for Phoenix built from typespecs, docs and routes](https://forum.elixirforum.com/t/portolan-openapi-documentation-for-phoenix-built-from-typespecs-docs-and-routes/76982)

<div class="topic-metadata">

**Author:** [@manuel-rubio](https://forum.elixirforum.com/u/manuel-rubio)\
**Replies:** 5\
**Last updated:** [October 14, 2026, 12:27am UTC](https://forum.elixirforum.com/t/portolan-openapi-documentation-for-phoenix-built-from-typespecs-docs-and-routes/76982 "2026-10-14T00:27:14Z")

</div>

A portolan was a medieval nautical chart describing ports and the routes between them. Portolan does the same for your Phoenix API. Portolan is removing the boilerplate. Uses types, comments, and the definition of the r…

---

## [Oaskit 0.14.1 - security release](https://forum.elixirforum.com/t/oaskit-0-14-1-security-release/75904)

<div class="topic-metadata">

**Author:** [@lud](https://forum.elixirforum.com/u/lud)\
**Replies:** 1\
**Last updated:** [July 5, 2026, 9:09pm UTC](https://forum.elixirforum.com/t/oaskit-0-14-1-security-release/75904 "2026-07-05T21:09:37Z")

</div>

Hello everyone, This is a security update for Oaskit. Version 0.14.1 is now on Hex and fixes a reflected cross-site scripting (XSS) vulnerability in the default error handler. If you are using Oaskit you should upgrade…

---

## [PhoenixSpectral - FastAPI-style type-driven APIs for Phoenix](https://forum.elixirforum.com/t/phoenixspectral-fastapi-style-type-driven-apis-for-phoenix/75314)

<div class="topic-metadata">

**Author:** [@andreashasse](https://forum.elixirforum.com/u/andreashasse)\
**Replies:** 0\
**Last updated:** [May 12, 2026, 12:38pm UTC](https://forum.elixirforum.com/t/phoenixspectral-fastapi-style-type-driven-apis-for-phoenix/75314 "2026-05-12T12:38:54Z")

</div>

Hi all, I’ve been working on PhoenixSpectral, a library that makes Phoenix controller @spec annotations drive both OpenAPI generation and runtime request/response validation — no separate schema definitions. The main d…

---

## [Polarex - Polar.sh Elixir SDK generated from OpenAPI](https://forum.elixirforum.com/t/polarex-polar-sh-elixir-sdk-generated-from-openapi/71041)

<div class="topic-metadata">

**Author:** [@giusdp](https://forum.elixirforum.com/u/giusdp)\
**Replies:** 3\
**Last updated:** [January 9, 2026, 6:08pm UTC](https://forum.elixirforum.com/t/polarex-polar-sh-elixir-sdk-generated-from-openapi/71041 "2026-01-09T18:08:11Z")

</div>

Hello! I wanted to try out Polar.sh on a project of mine and of course they don’t have an official Elixir client library. So I’ve made one myself! They have an OpenAPI spec json (I think they rely on it as well for the…

---

## [Oaskit v0.10 – Breaking changes for the security plug](https://forum.elixirforum.com/t/oaskit-v0-10-breaking-changes-for-the-security-plug/73915)

<div class="topic-metadata">

**Author:** [@lud](https://forum.elixirforum.com/u/lud)\
**Replies:** 0\
**Last updated:** [January 8, 2026, 11:48pm UTC](https://forum.elixirforum.com/t/oaskit-v0-10-breaking-changes-for-the-security-plug/73915 "2026-01-08T23:48:19Z")

</div>

Hello everyone, I’ve just pushed a small but important breaking change in Oaskit v0.10 around security handling. From now on, Oaskit.Plugs.ValidateRequest will always call the configured :security plug, even for operat…

---

## [Oaskit - OpenAPI 3.1 based validation for Phoenix](https://forum.elixirforum.com/t/oaskit-openapi-3-1-based-validation-for-phoenix/71476)

<div class="topic-metadata">

**Author:** [@lud](https://forum.elixirforum.com/u/lud)\
**Replies:** 11\
**Last updated:** [December 11, 2025, 4:40pm UTC](https://forum.elixirforum.com/t/oaskit-openapi-3-1-based-validation-for-phoenix/71476 "2025-12-11T16:40:05Z")

</div>

Hello! I’ve been working on the Oaskit library for a while now, and just released a first version. Since I’ve built JSV I wanted to be able to use the latest JSON schemas specifications with OpenAPI, which is possible …

---

## [What OpenAPI client/generator do you use on the frontend?](https://forum.elixirforum.com/t/what-openapi-client-generator-do-you-use-on-the-frontend/73183)

<div class="topic-metadata">

**Author:** [@lud](https://forum.elixirforum.com/u/lud)\
**Replies:** 5\
**Last updated:** [November 9, 2025, 3:36pm UTC](https://forum.elixirforum.com/t/what-openapi-client-generator-do-you-use-on-the-frontend/73183 "2025-11-09T15:36:55Z")

</div>

Hello, I’m working on the support for array parameters in Oaskit and there is a difference between how OpenAPI and Phoenix handle them. In OpenAPI you can declare a query parameter with explode: true which means that p…

---

## [Anyone used Openapi generator?](https://forum.elixirforum.com/t/anyone-used-openapi-generator/65028)

<div class="topic-metadata">

**Author:** [@ghannam80](https://forum.elixirforum.com/u/ghannam80)\
**Replies:** 1\
**Last updated:** [August 23, 2024, 3:40pm UTC](https://forum.elixirforum.com/t/anyone-used-openapi-generator/65028 "2024-08-23T15:40:10Z")

</div>

Hello All, I have found out that OpenAPI Generator is supporting Elixir so I would like to ask if anyone have tried it ? and if any feedback or notes to take into consideration? Thanks in advance,

---

## [How can I show all OpenAPI specs while I keep a single swaggerui page?](https://forum.elixirforum.com/t/how-can-i-show-all-openapi-specs-while-i-keep-a-single-swaggerui-page/60821)

<div class="topic-metadata">

**Author:** [@donghyun](https://forum.elixirforum.com/u/donghyun)\
**Replies:** 3\
**Last updated:** [January 9, 2024, 12:11pm UTC](https://forum.elixirforum.com/t/how-can-i-show-all-openapi-specs-while-i-keep-a-single-swaggerui-page/60821 "2024-01-09T12:11:18Z")

</div>

Hi, I’m a ash-newbie trying to get my head around the whole framework. Right now I’m experimenting with AshJsonApi, and my understanding is that you can create a router for each API or connect multiple APIs on one route…

---

## [Looking for feedback and/or contributors for testcontainers\_elixir](https://forum.elixirforum.com/t/looking-for-feedback-and-or-contributors-for-testcontainers-elixir/58942)

<div class="topic-metadata">

**Author:** [@jarlah](https://forum.elixirforum.com/u/jarlah)\
**Replies:** 15\
**Last updated:** [November 6, 2023, 1:21pm UTC](https://forum.elixirforum.com/t/looking-for-feedback-and-or-contributors-for-testcontainers-elixir/58942 "2023-11-06T13:21:08Z")

</div>

Hi! I have recently created, after having tried to get in touch with the creator of excontainers for quite some time, a new library called testcontainers\_elixir, which I hope will be merged into the testcontainers famil…

---

## [How to specify map/dict as a response in OpenApiSpex? ](https://forum.elixirforum.com/t/how-to-specify-map-dict-as-a-response-in-openapispex/58031)

<div class="topic-metadata">

**Author:** [@managua1902](https://forum.elixirforum.com/u/managua1902)\
**Replies:** 1\
**Last updated:** [September 2, 2023, 3:15pm UTC](https://forum.elixirforum.com/t/how-to-specify-map-dict-as-a-response-in-openapispex/58031 "2023-09-02T15:15:19Z")

</div>

Is there a way to specify a response as a map, with unknown keys, rather than a struct with the known ones? For instance: operation :data1, summary: "Balance info and some other info", parameters: \[ ....…

---

## [OpenAPI Generator - Generate client code from an OpanAPI description](https://forum.elixirforum.com/t/openapi-generator-generate-client-code-from-an-opanapi-description/54016)

<div class="topic-metadata">

**Author:** [@aj-foster](https://forum.elixirforum.com/u/aj-foster)\
**Replies:** 6\
**Last updated:** [August 17, 2023, 8:44pm UTC](https://forum.elixirforum.com/t/openapi-generator-generate-client-code-from-an-opanapi-description/54016 "2023-08-17T20:44:54Z")

</div>

Background OpenAPI is a standard for documenting API resources. Libraries like Spex allow you to generate OpenAPI descriptions of your endpoints to share with consumers. Then, the OpenAPI community provides a series of c…

---

## [Apical - OpenAPI router macro library](https://forum.elixirforum.com/t/apical-openapi-router-macro-library/56697)

<div class="topic-metadata">

**Author:** [@ityonemo](https://forum.elixirforum.com/u/ityonemo)\
**Replies:** 1\
**Last updated:** [July 14, 2023, 5:12pm UTC](https://forum.elixirforum.com/t/apical-openapi-router-macro-library/56697 "2023-07-14T17:12:54Z")

</div>

Apical v. 0.1 is released! Apical is a macro which generates an elixir router from an OpenAPI schema. This is useful if you want to have a very brittle schema for the consumption by 3rd party clients. (This way of goi…

---

## [How to generate Swagger/OpenAPI specification for Phoenix REST](https://forum.elixirforum.com/t/how-to-generate-swagger-openapi-specification-for-phoenix-rest/46844)

<div class="topic-metadata">

**Author:** [@ddoronin](https://forum.elixirforum.com/u/ddoronin)\
**Replies:** 11\
**Last updated:** [July 3, 2023, 12:04am UTC](https://forum.elixirforum.com/t/how-to-generate-swagger-openapi-specification-for-phoenix-rest/46844 "2023-07-03T00:04:22Z")

</div>

Hey folks! I’m trying to find a library to generate swagger/openapi specification based on elixir code (typed structs or type definitions). Unfortunately I can’t find anything… I’m new in elixir and phoenix. I want to g…

---

## [Doesn't pickup nested routes in SwaggerUI (OpenApiSpex)](https://forum.elixirforum.com/t/doesnt-pickup-nested-routes-in-swaggerui-openapispex/53071)

<div class="topic-metadata">

**Author:** [@freewebwithme](https://forum.elixirforum.com/u/freewebwithme)\
**Replies:** 3\
**Last updated:** [January 9, 2023, 10:04pm UTC](https://forum.elixirforum.com/t/doesnt-pickup-nested-routes-in-swaggerui-openapispex/53071 "2023-01-09T22:04:34Z")

</div>

I have nested routes in router.ex file but It doesn’t show up in localhost:4000/swaggerui I couldn’t figure out why this happens. campaign\_path POST /api/posts/preview …

---

## [Elixir for applications providing and consuming APIs over network](https://forum.elixirforum.com/t/elixir-for-applications-providing-and-consuming-apis-over-network/51530)

<div class="topic-metadata">

**Author:** [@JaniHur](https://forum.elixirforum.com/u/JaniHur)\
**Replies:** 2\
**Last updated:** [November 4, 2022, 6:58am UTC](https://forum.elixirforum.com/t/elixir-for-applications-providing-and-consuming-apis-over-network/51530 "2022-11-04T06:58:24Z")

</div>

Hello Community, I’m Elixir, but not a functional programming, beginner (read Elixir in Action already once but still here :). Is Elixir and BEAM/OTP platform suitable for applications providing and consuming APIs over…

---

## [Setting up Swagger UI in Phoenix vs Spring](https://forum.elixirforum.com/t/setting-up-swagger-ui-in-phoenix-vs-spring/30522)

<div class="topic-metadata">

**Author:** [@abat](https://forum.elixirforum.com/u/abat)\
**Replies:** 1\
**Last updated:** [August 24, 2022, 4:17am UTC](https://forum.elixirforum.com/t/setting-up-swagger-ui-in-phoenix-vs-spring/30522 "2022-08-24T04:17:16Z")

</div>

I need to use Swagger UI to document an API. I am looking at both open\_api\_spex and phoenix\_swagger. I remember setting up Swagger UI with Java’s Spring and that it basically just worked after installing some dependenci…

---

## [Redoc\_ui\_plug - A plug module to generate open api spec with Redoc](https://forum.elixirforum.com/t/redoc-ui-plug-a-plug-module-to-generate-open-api-spec-with-redoc/47368)

<div class="topic-metadata">

**Author:** [@wingyplus](https://forum.elixirforum.com/u/wingyplus)\
**Replies:** 0\
**Last updated:** [April 22, 2022, 5:34am UTC](https://forum.elixirforum.com/t/redoc-ui-plug-a-plug-module-to-generate-open-api-spec-with-redoc/47368 "2022-04-22T05:34:23Z")

</div>

I just publish a library called redoc\_ui\_plug | Hex. The library renders Redoc UI from the openapi specification url. I used this library together with open\_api\_spex, produce the openapi specification by using open\_api\_s…

---

## [Mix tasks reading args from a file?](https://forum.elixirforum.com/t/mix-tasks-reading-args-from-a-file/38538)

<div class="topic-metadata">

**Author:** [@niccolox](https://forum.elixirforum.com/u/niccolox)\
**Replies:** 1\
**Last updated:** [March 28, 2021, 5:36pm UTC](https://forum.elixirforum.com/t/mix-tasks-reading-args-from-a-file/38538 "2021-03-28T17:36:38Z")

</div>

Is it possible to create custom Mix Tasks that get args from a JSON or YAML file? I am looking into the possibility of running the existing Phoenix generators using Swagger/OpenAPI 3 as the source of the args. I know I…

---

## [Openapispex does not send data in POST body](https://forum.elixirforum.com/t/openapispex-does-not-send-data-in-post-body/29364)

<div class="topic-metadata">

**Author:** [@NAR](https://forum.elixirforum.com/u/NAR)\
**Replies:** 2\
**Last updated:** [February 24, 2020, 10:38pm UTC](https://forum.elixirforum.com/t/openapispex-does-not-send-data-in-post-body/29364 "2020-02-24T22:38:38Z")

</div>

I’m getting to know OpenApiSpex. I try to create a function on a REST API with two parameters and I’d like to pass the parameters in the body of the POST requests (I think this is how this stuff is usually used). So far …
