Skip to content

Commit 9a863bb

Browse files
committed
fix: missing type mapping
1 parent 305317c commit 9a863bb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

  • modules/openapi-generator/src/main/java/org/openapitools/codegen/languages
  • samples/client/petstore/elixir/lib/openapi_petstore/model

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ElixirClientCodegen.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ public ElixirClientCodegen() {
204204
typeMapping.put("integer", "integer()");
205205
typeMapping.put("boolean", "boolean()");
206206
typeMapping.put("array", "list()");
207+
typeMapping.put("set", "list()");
207208
typeMapping.put("object", "map()");
208209
typeMapping.put("map", "map()");
209210
typeMapping.put("null", "nil");

samples/client/petstore/elixir/lib/openapi_petstore/model/pet.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule OpenapiPetstore.Model.Pet do
2121
embedded_schema do
2222
field :id, :integer
2323
field :name, :string
24-
field :photoUrls, :any, virtual: true
24+
field :photoUrls, {:array, :string}
2525
embeds_many :tags, OpenapiPetstore.Model.Tag
2626
field :status, :string
2727
embeds_one :category, OpenapiPetstore.Model.Category

0 commit comments

Comments
 (0)