Skip to content

Applicator, Assertion, and Annotation as behaviors not categories #1447

Closed
@gregsdennis

Description

@gregsdennis

Core 7 describes keywords as belonging to "behavior categories." However, I don't think "categories" is quite right. It seems to imply that a keyword only behaves in one of these ways, which isn't the case. (If that's not what it's saying, I'm still reading it that way, and it could be clearer.)

These are just behaviors. Case in point: properties actually assumes all of these behaviors:

  • it's an applicator because it contains subschemas
  • it produces an annotation of the keywords it constrains
  • it produces a validation result by AND-ing all of the applicable subschemas' validation results

I think this section could make it clearer that a keyword can (and often does) embody more than one of these behaviors.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions