Skip to content

Conversation

@AshotN
Copy link
Contributor

@AshotN AshotN commented Oct 20, 2025

Summary

The JSON schema generator had the correct types for resolvers. TypeBox did not.

This led to obj in resolvers being typed incorrectly when using TypeBox.

@daffl daffl merged commit 55a4a9b into feathersjs:dove Nov 8, 2025
2 checks passed
@daffl
Copy link
Member

daffl commented Nov 8, 2025

Good catch, thank you!

@AshotN AshotN deleted the an/fixTypeBox-schema-gen branch November 10, 2025 17:10
@mvarendorff
Copy link

Is the first line of these really correct? My understanding was that nameResolver would not be related to the query necessarily. I am relatively new to the whole structure but it seems to be similar in the JSON schema generator:

export const ${camelName}Resolver = resolve<${upperName}, HookContext<${upperName}Service>>({})

Which also does not use the Query type in that position. Additionally, the hook generated for that schema is resolveResult and not resolveQuery.

More than happy to open a PR if my understanding is correct here, I just wanted to make sure since I just started looking into Feathers the other day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants