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

Ambiguous `result` element

Aperta
#38 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
43
Fork
13
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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": {
}
}
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.