dog-and-duck.quack.picky.constants
Constants supporting the picky validator.
activity-types
The set of types we will accept as activities.
There’s an explicit set of allowed activity types.
activitystreams-context-uri
The URI of the context of an ActivityStreams object is expected to be this literal string.
NOTE THAT the URI actually used in the published suite of activitystreams-test-documents use this URI with ‘http’ rather than ‘https’ as the property part, but the spec itself specifies ‘https’.
actor-types
The set of types we will accept as actors.
There’s an explicit set of allowed actor types.
context-key
The Clojure reader barfs on :@context
, although it is in principle a valid keyword. So we’ll make it once, here, to make the code more performant and easier to read.
implicit-noun-types
These types are not explicitly listed in Section 3.3 of the spec, but are mentioned in narrative
noun-types
The set of object types we will accept as nouns.
There’s an explicit set of allowed ‘object types’, but by implication it is not exhaustive.
re-rfc5646
A regex which tests conformity to RFC 5646. Cribbed from https://newbedev.com/regex-to-detect-locales
severity
Severity of faults found, as follows:
:info
not actually a fault, but an issue noted during validation;:minor
things which I consider to be faults, but which don’t actually breach the spec;:should
instances where the spec says something SHOULD be done, which isn’t;:must
instances where the spec says something MUST be done, which isn’t;:critical
instances where I believe the fault means that the object cannot be meaningfully processed.
validation-fault-context-uri
The URI of the context of a validation fault report object shall be this literal string.