Skip to content

Commit 7e30705

Browse files
committed
missing type mapping
1 parent 4d9bde1 commit 7e30705

File tree

2 files changed

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

2 files changed

+2
-1
lines changed

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

+1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule OpenapiPetstore.Model.Pet do
2222
field :id, :integer
2323
embeds_one :category, OpenapiPetstore.Model.Category
2424
field :name, :string
25-
field :photoUrls, :any, virtual: true
25+
field :photoUrls, {:array, :string}
2626
embeds_many :tags, OpenapiPetstore.Model.Tag
2727
field :status, :string
2828
end

0 commit comments

Comments
 (0)