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

Make a single function to parse CybOX files, and report errors sanely #55

Open
gtback opened this issue Aug 19, 2013 · 1 comment
Open
Assignees

Comments

@gtback
Copy link
Contributor

gtback commented Aug 19, 2013

Perhaps this should be cybox.parse. Eventually, we might add options for explicitly checking the version, etc. but for now there don't need to be any options.

The alternative is to put this function on Observables, so cybox.core.Observables.parse, since it should return an object of type Observables.

Note that you can currently parse a file by using the parseString function on the corresponding binding file, but this is not documented clearly and contradicts our attitude that users should not need to be aware of the bindings unless they really know what they are doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants