Closed Uzlopak closed 6 months ago
Totals | |
---|---|
Change from base Build 7654068412: | 0.0% |
Covered Lines: | 420 |
Relevant Lines: | 420 |
Looking at the change, this seems counterintuitive. Why specifying the same thing twice?
I just implemented it to fix the reported issue. If ajv strict is warning, because type is missing, then i guess it needs to be added, even if it is twice.
Should I continue on this PR or should we wait for more feedback?
Looking at it, it doesn't seems something we should fix. I've actually never used type with anyOf.
I've not found any JSONSchema specs that actually requires "type" with oneOf/anyOf.. maybe we should consider raising #233 on AJV side?
Closing due to inactivity.
I've not found any JSONSchema specs that actually requires "type" with oneOf/anyOf.. maybe we should consider raising #233 on AJV side?
I've been waiting for some reply on this.. I have still a lot of spam in my logs for this issue..
I've been waiting for some reply on this.. I have still a lot of spam in my logs for this issue..
https://json-schema.org/understanding-json-schema/reference/combining#factoringschemas
type
is not a requirement when using oneOf
, anyOf
or allOf
.
All the additional properties when using oneOf
, anyOf
or allOf
should be the common part. I don't think it is good to have union type there.
Resolves #233
Checklist
npm run test
andnpm run benchmark