Comments (2)
Something like:
file_path = Path(schema)
try:
if file_path.exists():
with open(schema, 'r') as schema_file:
self._schema = schema_file.read()
else:
self._schema = schema
except OSError as e:
self._schema = schema
Maybe?
from avro_validator.
Sorry for that, I just submitted a correction.
from avro_validator.
Related Issues (17)
- Is there a way to skip the extra_fields check ?
- Raise error or return False when validate HOT 1
- Validator doesn't understand recursive schemas HOT 2
- Valid data files with nullable fields not correctly validated HOT 2
- logicalType in schema
- does not support avro union, i.e., .avsc file is a JSON array? HOT 1
- RecordType ValueError is too strict HOT 1
- Date/Datetime Validation HOT 1
- logicalType is not supported HOT 3
- Validate multiple schemas against json
- Float validation fails if JSON has integer
- Failing to parse two-dimensional nested array of ints HOT 1
- Schema constructor fails on a long json string HOT 1
- Schema constructor does not close the file HOT 1
- Neither "null" in the union type nor default are respected HOT 1
- Support enum types HOT 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 avro_validator.