You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Main schemas (and all others: data, patch and query) should be registered using ajv's addSchema()
Actual behavior
I have tried the following for user instead of Type.Ref(userSchema) to no success:
// throws "Error: reference "User" resolves to more than one schema
user: userSchema// throws "MissingRefError"
user: Type.Ref(userSchema,{$id: 'User'})// does not work
user: Type.Ref(userSchema,{$schema: 'User'})
TLDR: CLI should be udpated to register main schemas using
dataValidator.addSchema(<service>Schema)
to be able to useType.Ref(<service>Schema)
Relevant thread
Steps to reproduce
I'm getting the same Error
MissingRefError: can't resolve reference User from id Message
when using user: Type.Ref(userSchema) for the following:Expected behavior
Main schemas (and all others: data, patch and query) should be registered using ajv's
addSchema()
Actual behavior
I have tried the following for user instead of Type.Ref(userSchema) to no success:
System configuration
The text was updated successfully, but these errors were encountered: