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

Allow purely additional schemas without needing to re-supply all core schemas #78

Open
apsillers opened this issue Mar 14, 2017 · 1 comment

Comments

@apsillers
Copy link

I can supply an alternate schema set to validate_xml with the schemas argument:

validate_xml(file, schemas="/my/complete/schema/for/stix_1.x")

However, what I'm really interested in doing is supplying some additional schemas for STIX extensions. I don't want to (and don't want to be required to) supply the complete schema set for core STIX types.

Is there any technical obstacle to adding another argument (e.g., extension_schemas) that will still pull in the normal core schemas, but then augment it with some extra schema set?

@gtback
Copy link
Contributor

gtback commented Mar 14, 2017

Taking a look at stix-validator/sdv/validators/xml_schema.py, it doesn't seem impossible to add an extra_schemas argument. I'm not exactly sure how all of the rest of the code in that file is working, though.

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