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

search_schema() fails to handle array of items gracefully #95

Open
tapastro opened this issue May 27, 2022 · 0 comments
Open

search_schema() fails to handle array of items gracefully #95

tapastro opened this issue May 27, 2022 · 0 comments

Comments

@tapastro
Copy link
Collaborator

In trying to search for keywords in each of the schemas present in the jwst repo, I found that DataModel.search_schema() fails on the wavelengthrange schema here during the walk_schema. I don't know if this is an issue with the schema itself or not, but if the schema is allowed to be written as-is, the method needs updating to allow for a search against a schema with this structure.

I had luck with modifying this line to resemble this line, but I don't know enough about the possible recursions to know if this is the correct fix.

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

1 participant