Open aidanhchau opened 1 month ago
this seems to be an issue in many other cases of invalid fern definition.
for example, when an invalid type is supplied (int
instead of the correct, integer
) the cli will provide no context as to why and will show the same error: Failed to reload because of validation errors:
Actually, issue can be easily resolved if the user just runs fern check --warnings
. Was just expecting some context around the Failed to reload because of validation errors:
due to the colon. Perhaps can change the error message to instruct the user to run fern check --warnings
or provide some context after the colon? @dsinghvi feel free to close the issue though.
Describe the bug
Pretty much title. In the api.yml file, when setting the
auth:
parameter to something likeBearer
, where the generator is expecting a subsequentbut none is provided, the cli docs dev tool will print
Failed to reload because of validation errors:
and nothing else.To reproduce
Steps to reproduce the behavior:
fern docs dev
to set up local dev environment with auto reloadauth:
set to a capitalized word (as opposed to a lowercase, i.e.Bearer
vsbearer
) with noauth-schemes:
specified.Failed to reload because of validation errors:
with no additional context, which makes this issue hard to debug.Example api.yml:
Expected behavior
I expect context in the error thrown by the cli pointing me to the api.yml file and telling me i have no auth-scheme specified.
Screenshots
CLI Version
0.30.0