Closed jstoiko closed 3 years ago
It looks like it's impossible to determine default type for boolean, date and nil as they either don't have unique facets or have no facets at all.
You're right. Doesn't seem to contradict the proposed clarification above though, does it?
You're right. Doesn't seem to contradict the proposed clarification above though, does it?
It doesn't.
In the
Determine Default Types
section, a number of rules are enumerated to help infer a type without having to specify thetype
facet.The first rule mentions how setting a facet that is unique to a given type removes the need to specify the
type
facet. The issue is that it only specifiesproperties
as inferringtype: object
. This was clearly an oversight when writing the Spec as there are other types that have facets unique to them such asfileTypes
fortype: file
anditems
fortype: array
.Proposed clarification:
to: