Uh oh!
There was an error while loading. Please reload this page.
Weitere API-Endpunkte - #25
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>
wirthual
commented
Mar 20, 2023
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>
mvglasow
commented
Mar 20, 2023
Danke für den Link, jetzt sollte alles passen. |
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: mvglasow <michael -at- vonglasow.com>
mvglasow
commented
May 23, 2023
Done. |
| 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 withdocker run --rm -it -v $(pwd):/tmp stoplight/spectral lint --ruleset "/tmp/.spectral.yaml" "/tmp/openapi.yaml"
t-huyeng
commented
May 25, 2023
If the small error in line 496 is fixed, I think we can merge. |
wirthual
commented
May 25, 2023
Yes, thats correct 👍 |
Signed-off-by: mvglasow <michael -at- vonglasow.com>
mvglasow
commented
May 26, 2023
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>
mvglasow
commented
May 26, 2023
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.