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

@tomic/cli should give clear error when trying to generate types from a non ontology resource #831

Closed
Polleps opened this issue Jan 30, 2024 · 0 comments · Fixed by #839
Closed
Labels
bug Something isn't working @tomic/cli @tomic/cli

Comments

@Polleps
Copy link
Member

Polleps commented Jan 30, 2024

When you add a resource to the ontologies list that is not an ontology the cli crashes because it cant read properties or classes (this will likely also happen when it is an ontology but doesn't have classes or properties)

It should check to see if something is an ontology before trying to process it and display a clear error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @tomic/cli @tomic/cli
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant