Conversation
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
Hi, Da haben sich ein paar copy and paste fehler eingeschlichen glaube ich. Wenn roadId in der beschreibung unter path ist, dann muss es auch im path als {roadId} zu finden sein. Kannst du versuchen deine version in den editor unter https://editor.swagger.io/ einzufuegen, dann solltest du die Fehler sehen. |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
Danke für den Link, jetzt sollte alles passen. |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
Done. |
openapi.yaml
Outdated
| road: | ||
| $ref: '#/components/schemas/RoadId' | ||
| counter: | ||
| type: number |
There was a problem hiding this comment.
Sorry, just run the openapi check again locally, and this either needs to be a string' not a number' or line 496 needs to be changed.
496:20 error oas3-valid-schema-example "counter" property type must be number components.schemas.RoadCounter.example.counter
You can run the spectral lint by yourself if you have docker installed with
docker run --rm -it -v $(pwd):/tmp stoplight/spectral lint --ruleset "/tmp/.spectral.yaml" "/tmp/openapi.yaml"
|
If the small error in line 496 is fixed, I think we can merge. |
|
Yes, thats correct 👍 |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
Line 496 is correct, the API does in fact return a string representation of the number. This is similar to other (already documented) cases where Boolean values are passed as strings, not Boolean values. |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
|
Should be OK now, except for the server not reporting the expected content type – but that doesn’t look like any of my changes introduced it. |

Wie in #20 beschrieben, außerdem
/parkingfür Pkw-Rastplätze (/parking_lorryist auf Rastplätze mit Lkw-Stellplätzen beschränkt).Hierzu musste
/autobahnaus der Basis-URL in die bereits dokumentierten URLs verschoben werden.Syntaxprüfung habe ich keine durchgeführt – wenn etwas nicht passt, bitte melden.