Frédéric Nieto

Results 93 comments of Frédéric Nieto

Ah yes Indeed... There is no way around that in ktor sadly as you cannot stop scope inheritance. The only way to change that is to change the syntax entirely...

Didn't see 3 you can simply edit the description in the status code class. 1 seems like a regression, i'll look into it 2 is an oversight then i'll look...

@christiangroth 2 works properly when i copy your code, the one difference is that i don' t have a `@serialize` annotation so I removed it. ![image](https://user-images.githubusercontent.com/5405183/111681180-42bf5380-8823-11eb-8312-2b5032ee7671.png)

@christiangroth what is your jackson configuration for the server ? ```kotlin install(io.ktor.features.ContentNegotiation) { jackson { enable( com.fasterxml.jackson.databind.DeserializationFeature.WRAP_EXCEPTIONS, com.fasterxml.jackson.databind.DeserializationFeature.USE_BIG_INTEGER_FOR_INTS, com.fasterxml.jackson.databind.DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS ) enable(com.fasterxml.jackson.databind.SerializationFeature.WRAP_EXCEPTIONS, com.fasterxml.jackson.databind.SerializationFeature.INDENT_OUTPUT) setSerializationInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) setDefaultPrettyPrinter(com.fasterxml.jackson.core.util.DefaultPrettyPrinter().apply { indentArraysWith(com.fasterxml.jackson.core.util.DefaultPrettyPrinter.FixedSpaceIndenter.instance) indentObjectsWith(com.fasterxml.jackson.core.util.DefaultIndenter(" ", "\n")) })...

It looks like the origin of your issue, you'll have to debug that on your own as i know nothing of kotlinx/serialization.

You can't do inline data classes ?

they are indee incompatible, if you want to implement them you need to add the logic to `com/papsign/ktor/openapigen/parameters/util/Util.kt`

in principle just the isData check could be removed to make it work

Nice, the set_content is a lot faster than using a data url !