AI-Planning / AI-Planning/planning-as-a-service

Ambiguous `result` element

Ouverte
#38 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
43
Forks
13
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

It is hard and untidy to consume the `result` element, because in context of `status: PENDING` it is a string/URL, and in context of `status: ok`, it is a structure. I recommend putting the URL to a distinctly different element outside of the `result` field.

Here is my understanding, of what the returned json body semantic:
https://github.com/jan-dolejsi/pddl-planning-service-client/blob/main/src/PlannerPackagePreviewService.ts#L125

Consider this:

```json
{
"status": "PENDING",
"check": "/check/......."
}
```

... vs ...

```json
{
"status": "ok",
"result": {
}
}
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.