-
Notifications
You must be signed in to change notification settings - Fork 411
required params in doc #537
Comments
Could you include an example, along with a screenshot? |
The template seems to have the code looking for the required property for fields in the body, but the disconnect seems to happen when inspecting the fields in a type. A If the i.e.
Though usage of a default could complicate that a bit, since if the validator has a default, then you don't necessarily need to supply a value. You may also need to rely on the description to communicate what that default is.
My brain is too fuzzy this early in the morning to be sure that logic is correct. |
@rhelms Here's what I understand: The For It seems But to me this is not where the problem lies. The problem is in the template which looks for a But according to the line above, it seems |
Fix doc template so that required parameters are shown correctly as such for Request Body fields. See encode#537.
I have suggested a correction in PR #582 . |
In docs, path_parameter have the "required" mark but the required validators from Type should also have this mark.
The text was updated successfully, but these errors were encountered: