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 Sep 29, 2023. It is now read-only.
Issue: JsonSchema currently only allows just 'object' as a type, but if a json response returns an array of objects. The only type that can be validated is just 'object' therefore the type would return an error for the wrong type.
The text was updated successfully, but these errors were encountered:
I know this is stale, but I'm having exactly the same issue.
The JsonSchema.type should not be limited to object. I need the solution that @dtranVAMP is suggesting. I can issue a PR if that helps, but I don't want to waste my time if no one is looking at this.
File: objects.ts
Issue: JsonSchema currently only allows just 'object' as a type, but if a json response returns an array of objects. The only type that can be validated is just 'object' therefore the type would return an error for the wrong type.
The text was updated successfully, but these errors were encountered: