SMILEY4 / ktor-swagger-ui

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

[outdated] Documentation Example Serialization #76

Closed douglasqueirozalmeida closed 8 months ago

douglasqueirozalmeida commented 8 months ago

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

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

Sterta commented 8 months ago

@douglasqueirozalmeida you need to use EncodingData instead of EncodingConfig

SMILEY4 commented 8 months ago

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