dog-and-duck.quack.picky.constants

Constants supporting the picky validator.

activitystreams-context-uri

The URI of the context of an ActivityStreams object is expected to be this literal string.

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.

severity

Severity of faults found, as follows:

  1. :info not actually a fault, but an issue noted during validation;
  2. :minor things which I consider to be faults, but which don’t actually breach the spec;
  3. :should instances where the spec says something SHOULD be done, which isn’t;
  4. :must instances where the spec says something MUST be done, which isn’t;
  5. :critical instances where I believe the fault means that the object cannot be meaningfully processed.

severity-filters

Hack for implementing a severity hierarchy

validation-fault-context-uri

The URI of the context of a validation fault report object shall be this literal string.

verb-types

The set of types we will accept as verbs.

There’s an explicit set of allowed verb types.