You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using https://editor.swagger.io/ I just caught a few errors that so far had gone unnoticed. I had a few routes with path parameters (e.g. get("/dota2/abilities/:dota2_ability_id", Dota2.AbilityController, :show)) but I forgot to declare :dota2_ability_id in the parameters list. Here it is, commented out:
Could we add some check that makes the ....OpenAPI.spec() call fail if path parameters are missing?
I'm not sure what could be done for missing parameters of other kinds.
The text was updated successfully, but these errors were encountered:
In that situation you can parse the route coming from Phoenix and compare it to the declared parameters, emitting a warning if something doesn't match up.
Using https://editor.swagger.io/ I just caught a few errors that so far had gone unnoticed. I had a few routes with path parameters (e.g.
get("/dota2/abilities/:dota2_ability_id", Dota2.AbilityController, :show)
) but I forgot to declare:dota2_ability_id
in the parameters list. Here it is, commented out:Could we add some check that makes the
....OpenAPI.spec()
call fail if path parameters are missing?I'm not sure what could be done for missing parameters of other kinds.
The text was updated successfully, but these errors were encountered: