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

Disabling default product_type not working for ERA5_PL via cop_cds #1450

Open
amarandon opened this issue Dec 17, 2024 · 0 comments · May be fixed by #1473
Open

Disabling default product_type not working for ERA5_PL via cop_cds #1450

amarandon opened this issue Dec 17, 2024 · 0 comments · May be fixed by #1473
Assignees
Labels
bug Something isn't working

Comments

@amarandon
Copy link
Collaborator

When making this request to eodag server:

http://127.0.0.1:5000/collections/ERA5_PL/queryables?provider=cop_cds&ecmwf:product_type

The default value is still present in the response:

  "properties": {
    "ecmwf:product_type": {
      "default": [
        "reanalysis"          /*   <-- this should not be there   */
      ],
      "items": {
        "enum": [
          "ensemble_mean",
          "ensemble_members",
          "ensemble_spread",
          "reanalysis"
        ],
        "type": "string"
      },
      "title": "product_type",
      "type": "array"
    },

Note that it works as expected for other products, for example:

http://127.0.0.1:5000/collections/CAMS_EAC4/queryables?provider=cop_ads&ecmwf:variable

Gives this result:

  "properties": {
    "ecmwf:variable": {
      /* No default value, as expected */
      "description": "Please, consult the product user guide in the documentation section for more information on these variables.",
      "items": {
        "enum": [
          "10m_u_component_of_wind",
          "10m_v_component_of_wind",
          "2m_dewpoint_temperature",
@amarandon amarandon added the bug Something isn't working label Dec 17, 2024
@anesson-cs anesson-cs linked a pull request Jan 15, 2025 that will close this issue
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.

2 participants