Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i validate YAML and schema that are strings and not files #150

Closed
minherz opened this issue Jan 17, 2019 · 2 comments
Closed

how can i validate YAML and schema that are strings and not files #150

minherz opened this issue Jan 17, 2019 · 2 comments

Comments

@minherz
Copy link

minherz commented Jan 17, 2019

Existing examples show the use of package only with files. How it can be used vs. two string variables that contain the YAML and Schema?

@Grokzen
Copy link
Owner

Grokzen commented Jan 17, 2019

It is possible to run it with strings by running something like `Core(source_data="", schema_data="")

https://github.com/Grokzen/pykwalify/blob/master/pykwalify/core.py#L34

It is not supported to pipe in any arbitrary textblob from the cli, cli requires the data to be in files.

@minherz
Copy link
Author

minherz commented Jan 17, 2019

Thank you

@minherz minherz closed this as completed Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants