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
{{ message }}
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
This extra property is causing the validation to throw an error when the notes property is set to null on the incoming data. When I remove the extra type I can pass null as the value no problem.
Steps to reproduce
Just see the example above
Expected behavior
The extra type property should not be there
Actual behavior
The extra type property is being added and appears to be overriding oneOf
System configuration
@feathers-plus/cli 0.8.10
Node 10.15.0
Windows 10
The text was updated successfully, but these errors were encountered:
Summary
I have a JSON schema with a property notes that uses the oneOf keyword to allow more than one type. In my case string and null.
Now, when I regenerate the service, the schema that gets generated in the *.validate.ts file has an extra type property as a sibling to oneOf.
This extra property is causing the validation to throw an error when the notes property is set to null on the incoming data. When I remove the extra type I can pass null as the value no problem.
Steps to reproduce
Just see the example above
Expected behavior
The extra type property should not be there
Actual behavior
The extra type property is being added and appears to be overriding oneOf
System configuration
@feathers-plus/cli 0.8.10
Node 10.15.0
Windows 10
The text was updated successfully, but these errors were encountered: