api-docs icon indicating copy to clipboard operation
api-docs copied to clipboard

OpenAPI specification fixes for AddressType and int64

Open softdevca opened this issue 3 years ago • 1 comments

There are two fixes required to the OpenAPI specification. F

First is that the container of enums shouldn't be array because it causes the type to be interpreted as Seq[MyEnum]. This causes OpenAPI Generator to create code that won't compile.

Second is that int64 should be consistently have the integer type rather than the more general number type. The number type causes the OpenAPI generator to use the BigDecimal type for what should be a primitive and fail to compile

Tested with the scala-* generators.

softdevca avatar Apr 22 '21 23:04 softdevca

I understand the OpenAPI specification for Samsara is not officially supported for code generation, but it would be a nice bonus if minor errors affecting code generation could be fixed.

softdevca avatar Jun 17 '21 22:06 softdevca