Fix typo in OPTIMADE client: remove quotes in response fields #2856
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
One more fix related to #2852 -- response fields also should not have quotes around the entire field. This was caught by a test that directly queries MP, which was (also incorrectly) returning data that didn't quite match rather than an error, e.g.:
https://optimade.materialsproject.org/v1/structures?filter=(elements%20HAS%20ALL%20%22Ga%22,%20%22N%22)%20AND%20(nelements=2)&response_fields=%22species_at_sites,cartesian_site_positions,species,lattice_vectors,nsites%22
vs what should happen if you incorrectly format the response fields:
https://optimade.odbx.science/v1/structures?response_fields="id"