We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npx envinfo --npmPackages '*hapi*' --binaries
Binaries: Node: 14.15.4 Yarn: 1.22.5 npm: 7.5.4 npmPackages: hapi-auth-jwt2: ^10.2.0 => 10.2.0 hapi-swagger: ^14.1.0 => 14.1.0
Use .meta({ swaggerHidden: true }) as a chained command in the Joi validation
.meta({ swaggerHidden: true })
'x-something': Joi.string().meta({ swaggerHidden: true }),
A working swagger page without the specific Joi property using the swaggerHidden value as specified in the document.
swaggerHidden
Failed to load API definition.
Latest library.
A simple fix for this is to add the following line : if (schemaObj.properties[key]=== undefined ) return ; here
if (schemaObj.properties[key]=== undefined ) return ;
The text was updated successfully, but these errors were encountered:
I will check it.
Sorry, something went wrong.
add a test that fails, to test issue hapi-swagger#704
15572c0
fix issue hapi-swagger#704
16f5e27
small refactoring after fix hapi-swagger#704
fab1df2
Successfully merging a pull request may close this issue.
Issue
Environment
npx envinfo --npmPackages '*hapi*' --binaries
Binaries:
Node: 14.15.4
Yarn: 1.22.5
npm: 7.5.4
npmPackages:
hapi-auth-jwt2: ^10.2.0 => 10.2.0
hapi-swagger: ^14.1.0 => 14.1.0
Steps to Reproduce
Use
.meta({ swaggerHidden: true })
as a chained command in the Joi validationExpected Behavior
A working swagger page without the specific Joi property using the
swaggerHidden
value as specified in the document.Actual Behavior
Failed to load API definition.
Reproducible Demo
Latest library.
NOTE
A simple fix for this is to add the following line :
if (schemaObj.properties[key]=== undefined ) return ;
here
The text was updated successfully, but these errors were encountered: