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

CDS credential parameters can't be passed to new_data_store #65

Closed
pont-us opened this issue Feb 8, 2023 · 1 comment · Fixed by #66
Closed

CDS credential parameters can't be passed to new_data_store #65

pont-us opened this issue Feb 8, 2023 · 1 comment · Fixed by #66
Assignees
Labels
bug Something isn't working

Comments

@pont-us
Copy link
Member

pont-us commented Feb 8, 2023

When attempting to use the CDS store via the xcube.core.store.new_data_store method:

> cds = new_data_store('cds', endpoint_url='https://cds.climate.copernicus.eu/api/v2', cds_api_key='12345:abcd1234-1234-5678-abcd-123456789abc')

...
ValidationError: Additional properties are not allowed ('cds_api_key', 'endpoint_url' were unexpected)
...

However, these parameters do work when supplied directly to the CDSDataStore constructor.

@pont-us
Copy link
Member Author

pont-us commented Feb 8, 2023

CDSDataStore.get_data_store_params_schema returns a schema which omits these parameters; they should be added to the schema.

pont-us added a commit that referenced this issue Feb 8, 2023
@pont-us pont-us self-assigned this Feb 8, 2023
@pont-us pont-us added the bug Something isn't working label Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant