v3 function schemas don't show error for missing fields on returns
See original GitHub issueGiven code:
The function returns additional fields that are not on the returns schema. The expected behavior is that TS would throw an error due to key2
being an additional field on the type. Adding strict()
does not fix this either
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Unsure how to resolve Missing field while writing result error ...
We'd like to resolve this issue and remove the errors from the console, but have so far been unsuccessful. We tried to update...
Read more >Customizing the behavior of cached fields - Apollo GraphQL
The following read function returns a default value of UNKNOWN NAME for the name field of a Person type whenever a value isn't...
Read more >How do I resolve issues with missing or incorrect schema ...
I have run into various cases where errors are occurring related to the DatabaseSchemaVersion property in the LSW_SYSTEM_SCHEMA table for the BPM and...
Read more >Quickstart — marshmallow 3.19.0 documentation
Make a field required by passing required=True . An error will be raised if the the value is missing from the input to...
Read more >Mongoose Schema hasn't been registered for model
This seemed to solve the Schema error, but now there's a "router is not defined" error in routes/index.js . I understand what a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep either one is good.
Note that if
TestSchema
contains transforms you’ll want to usez.input
instead ofz.infer
.Ah interesting. I was thinking of this: