Comments (1)
@johker01 ah, params which use $ref
are not resolved or processed by Huma. You would need to do your own validation wherever you plan to access the value. Manually adding these into the OpenAPI is a way for you to document them to your user, but Huma assumes you are managing everything yourself.
Open to ideas on how this should work differently, but in general if Huma isn't loading a value into a struct/field it won't handle validation for it.
from huma.
Related Issues (20)
- Bug? Hidden Body field is not recognized by validation
- Missed schema description on generation.
- `ErrorModel` schema improvements. HOT 3
- Question: Is is possible for field order in documentation to reflect struct field order? HOT 2
- 500 errors with "cannot read request body" HOT 2
- Enable global additional properties HOT 1
- Confusing documentation, possibly typo HOT 2
- Registering noop operations HOT 3
- huma panics on client context canceled HOT 4
- Validation with `discriminator.mapping` HOT 2
- Enum validation tag with comma in actual values HOT 3
- time.Time cannot validate using some specified format hints HOT 4
- OpenAPI spec does not support "null" type HOT 2
- Returning a response from Middleware HOT 2
- Best practice for middleware testing HOT 2
- Update dependencies (and set up auto-dep bumps) HOT 2
- returning nil for both the output struct and the error from a handler panics HOT 1
- Latest release has wrong tag / version HOT 1
- Race condition detected in Huma v2.22.0 HOT 2
- The 'pattern' struct tag does not work in some cases.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huma.