SMILEY4 / ktor-swagger-ui

Kotlin Ktor plugin to generate OpenAPI and provide Swagger UI
Apache License 2.0
182 stars 33 forks source link

[outdated] Documentation Example Serialization #76

Closed douglasqueirozalmeida closed 11 months ago

douglasqueirozalmeida commented 11 months ago

EncodingConfig.encodeExample(value) does not exist. Which can be used?

io.github.smiley4:ktor-swagger-ui:2.7.1

Sterta commented 11 months ago

@douglasqueirozalmeida you need to use EncodingData instead of EncodingConfig

SMILEY4 commented 11 months ago

Yes, to encode a value using the default encoder, EncodingData.encodeExample(value) can be used. I'll update the documentation.