swagger-api / swagger-api/swagger-parser
OpenAPIV3Parser.read: UTF-8 Charset errors
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 867
- Forks
- 560
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 7
Description
Hello,
parsing a OAS 3.0.0 spec in UTF-8 with this configuration :
openapi: 3.0.0
info:
title: ApiWeb
version: 1.0.0
description: "Documentation de l'API élaboré par nos soins"
displays wrong characters:
Documentation de l'API ??labor?? par nos soins
The yaml source file is in UTF-8. (i checked in intelliJ and in another editor)
OpenAPIV3Parser.read doesn't seem to support correctly UTF-8.
Thanks for your help
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at OpenAPIV3Parser.read using the supplied UTF-8 OAS 3.0.0 YAML and inspect how the source is decoded. Reproduce the mojibake with the accented description, then verify that a regression test preserves those characters after parsing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100