Closed tomkralidis closed 1 year ago
I think this is good as it is. name specifies the name of the entity and organization is just use for an individual that is affiliated with a company. But maybe we need to clarify this.
3 cases could be captured
When using name only, it is impossible to distinguish case 1 from case 2
2023-07-05: agreement to move forward with proposal. I will issue a PR.
Above it says "ONE OF" for name and organization. Does this mean you can't provide both name and organization?
Changed to ANY OF
~"any of" would mean providing none of them is also fine ;-) I guess what it actually meant here is "at least one of".~
So then:
"oneOf": [
{
"allOf": [
{
"required": [
"name"
]
}
]
},
{
"allOf": [
{
"required": [
"organization"
]
}
]
}
]
Sorry @tomkralidis, my fault, I was mixing things up. any of is correct :-)
PR in #296
The current contact schema describes contact
name
/organization
as follows:name
is a required property.Is implementing
name
ororganization
, then, domain/activity specific? For example, consider a catalogue implementing facets on contact organizations. Would the catalogue have to check iforganization
exists? If not, then usename
and assumename
is an organization?Should we consider a contact to require ~ONE OF~ ANY OF
name
ororganization
, with clear definitions of each?cc @pvretano @kalxas @m-mohr @pvgenuchten