Riksdagsmonitor Intelligence Platform โ€” API Documentation - v0.8.35
    Preparing search index...

    Options controlling which checks are enforced.

    interface ValidationOptions {
    ย ย ย ย requireH1?: boolean;
    ย ย ย ย requireSections?: boolean;
    ย ย ย ย requireSources?: boolean;
    ย ย ย ย minWordCount?: number;
    ย ย ย ย requireLangAttr?: boolean;
    ย ย ย ย requireDoctype?: boolean;
    }
    Index

    Properties

    requireH1?: boolean

    Require a <h1> element (default: true).

    requireSections?: boolean

    Require at least one <h2> section (default: true).

    requireSources?: boolean

    Require the sources footer block and fail when absent (default: true).

    minWordCount?: number

    Minimum word count threshold (default: 50).

    requireLangAttr?: boolean

    Require valid <html lang="โ€ฆ"> attribute (default: true).

    requireDoctype?: boolean

    Require <!DOCTYPE html> declaration (default: true).