Skip to content

validate schema from a file #1558

Answered by Hvuj
Hvuj asked this question in Q&A
Discussion options

You must be logged in to vote

Upon further investigation - currently i see its possible by using only DataFrameSchema from_yaml or from_json, e.g.

pa. DataFrameSchema.from_json()
pa. DataFrameSchema.from_yaml()

while DataFrameModel can only use to_yaml, to_schema()

there is also a possibility of using from_frictionless_schema to read third party schemas which has a schema parameter:

schema (Union[str, Path, Dict, Schema])

essentially what i want to do is possible but requires writing to a specific format and from there added functionality to auto update schemas.

a bit unsatisfactory as DataFrameModel should also have this ability to adjust fields.

current approach - fix schemas, convert to string representation of D…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Hvuj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant