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

double quotes for static_dataset_info key #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sebastian-luna-valero
Copy link
Contributor

Testing this example:

"example": {
"static_objectstores_info": {
"object_store_australia": {"latitude": -26.4390917, "longitude": 133.281323}
},
"static_dataset_info": {
0: {"object_store_id": "object_store_australia", "size": 1073741824000.0}
},
"static_job_info": {"tool_id": "trinity", "mem": 8, "cores": 2, "gpus": 0},
"current_dest_info": [
{
"id": "slurm_germany",
"latitude": 51.1642292,
"longitude": 10.4541192,
"queued_job_count": 5,
"running_job_count": 5
},
{
"id": "condor_france",
"latitude": 46.71109,
"longitude": 1.7191036,
"queued_job_count": 5,
"running_job_count": 5
},
{
"id": "pulsar_australia",
"latitude": -26.4390917,
"longitude": 133.281323,
"queued_job_count": 5,
"running_job_count": 5
}
]
}

With 0 as the key in:

    "static_dataset_info": {
        0: {
            "object_store_id": "object_store_australia",
            "size": 1073741824000
        }
    }

Returns

{
  "detail": [
    {
      "type": "json_invalid",
      "loc": [
        "body",
        199
      ],
      "msg": "JSON decode error",
      "input": {},
      "ctx": {
        "error": "Expecting property name enclosed in double quotes"
      }
    }
  ]
}

@sebastian-luna-valero sebastian-luna-valero changed the title double quotes for static_dataset_info double quotes for static_dataset_info key Nov 7, 2024
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

Successfully merging this pull request may close these issues.

1 participant