Comments (9)
Thanks! I'll take a look.
from prance.
Well the good news first: I can confirm this is happening.
The reason seems to be that the file encoding for the parts file is incorrectly detected as iso-8859-2
when it is valid utf-8
.
There is a heuristic in prance for detecting file encoding that's based on a bunch of backends, each of which should do better than prance itself, since they're specialized character encoding libraries. But still this fails.
As a workaround, I'm adding a CLI option for setting the file encoding, overriding detection. I'll also see if I can make the heuristic a little bit smarter.
from prance.
So excelent and so quick answer. Thank you very much.
from prance.
Unfortunately, I'm not always that quick :)
from prance.
Quick question, are you on Python3?
Python2 will no longer be maintained after the end of the year, so I've recently made changes to drop testing for it (it's still supported, I suppose). Would that impact you?
from prance.
Yes, yes, of course, as I pointed out at the end of my description:
prance==0.16.2 python 3.7.5
Yet waiting with hope for walrus op. in 3.8 :)
Thx
from prance.
Ah - I missed that, sorry. Ok, then I'll make this part of 0.17 rather than a patch release. Should be done soon either way.
from prance.
Once again thank you very much
from prance.
Will be released with 0.17.0
from prance.
Related Issues (20)
- Add test support for linux aarch64 HOT 1
- Dependency conflict when including prance HOT 1
- ImportError: cannot import name 'validate_v2_spec' from 'openapi_spec_validator' HOT 5
- Detect swagger vs openapi and auto-select appropriate backend
- validate doesnt indicate which line number or element is problematic
- merge allOf HOT 1
- Requesting a new release tag for the change - update openapi-spec-validator NixOS/nixpkgs#193272 HOT 2
- HOMEDRIVE in the fs.py file causes an error HOT 1
- support chardet v5
- support packaging v23 HOT 2
- CLI option does not allow click 8.x (which conflicts with black requirements)
- pypi lists previous release as latest HOT 4
- prance.convert uses a conversion API that was shut down
- Keep schema name after resolving HOT 2
- References in discriminator mappings are not being expanded HOT 1
- Import in BaseParser causes jsonschema deprecation warning
- Provide option to validate schema from string along with file path and url
- Option to parse schemas with cyclic references
- [BUG] `nullable` enums do not add `null` to the enum list
- Prance doesn't work with python 3.12.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prance.