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
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