openapi: 3.1.0
info:
  title: Everything Morgantown open data
  version: 1.0.0
  description: Static JSON files, rebuilt every morning. No key, no sign-up. Every
    record lists its sources and checked dates. Check the source before you act.
  license:
    name: CC BY 4.0
    url: https://creativecommons.org/licenses/by/4.0/
servers:
  - url: https://everythingmorgantown.org/api/v1
paths:
  /index.json:
    get:
      summary: "Catalog: types, counts, license and build time"
      responses:
        "200":
          description: The catalog
  /orgs.json:
    get:
      summary: All orgs records
      description: "Organizations: nonprofits, government offices, schools, community
        groups and others."
      responses:
        "200":
          description: A list of records
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/orgs"
  /orgs/{slug}.json:
    get:
      summary: One orgs record
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The record
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orgs"
        "404":
          description: No record with that id
  /resources.json:
    get:
      summary: All resources records
      description: "Things a person can use or do: programs, services, offices and lines."
      responses:
        "200":
          description: A list of records
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/resources"
  /resources/{slug}.json:
    get:
      summary: One resources record
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The record
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/resources"
        "404":
          description: No record with that id
  /calendar.json:
    get:
      summary: All calendar records
      description: "Deadlines and dates that have not ended yet: hand-checked entries
        plus entries pulled from public calendar feeds each day."
      responses:
        "200":
          description: A list of records
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/calendar"
  /calendar/{slug}.json:
    get:
      summary: One calendar record
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The record
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/calendar"
        "404":
          description: No record with that id
  /needs.json:
    get:
      summary: All needs records
      description: "The needs register: ranked problems people in Mon County face,
        each with public, aggregate evidence and its sources. Describes
        problems; takes no policy side."
      responses:
        "200":
          description: A list of records
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/needs"
  /needs/{slug}.json:
    get:
      summary: One needs record
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The record
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/needs"
        "404":
          description: No record with that id
  /meetings.json:
    get:
      summary: All meetings records
      description: "Public meetings of City of Morgantown boards (and the bodies on
        its AgendaCenter) and the Monongalia County Commission, from the last
        120 days and ahead: meeting date, agenda link, and minutes link once
        posted. Read from the official pages each day."
      responses:
        "200":
          description: A list of records
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/meetings"
  /meetings/{slug}.json:
    get:
      summary: One meetings record
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The record
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/meetings"
        "404":
          description: No record with that id
  /agenda_guides.json:
    get:
      summary: All agenda_guides records
      description: "Plain-language agenda guides for public meetings of City of
        Morgantown boards, the County Commission, regional boards and towns
        (#529, #2084). Each item keeps the agenda title word for word, with its
        kind and one neutral line on what kind of item it is, never whether it
        is good or bad. Private people's names are written as [name]. Kept after
        the meeting, so past guides stay here too."
      responses:
        "200":
          description: A list of records
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/agenda_guides"
  /agenda_guides/{slug}.json:
    get:
      summary: One agenda_guides record
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The record
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/agenda_guides"
        "404":
          description: No record with that id
  /meeting_decisions.json:
    get:
      summary: All meeting_decisions records
      description: "What public meetings decided, from their official minutes (#529,
        #2084): every motion the minutes record, in order, with the result and
        vote count as written. No debate, reasons, speakers or public comment.
        Who moved and seconded is left out, and private people's names are
        written as [name]. Check minutes_status: draft minutes can change."
      responses:
        "200":
          description: A list of records
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/meeting_decisions"
  /meeting_decisions/{slug}.json:
    get:
      summary: One meeting_decisions record
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The record
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/meeting_decisions"
        "404":
          description: No record with that id
  /places.json:
    get:
      summary: All places records
      description: "Gathering places: community centers, senior centers, neighborhood
        houses, rec buildings and fire halls that rent a hall, with what they
        have and how to use them."
      responses:
        "200":
          description: A list of records
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/places"
  /places/{slug}.json:
    get:
      summary: One places record
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The record
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/places"
        "404":
          description: No record with that id
  /corrections.json:
    get:
      summary: All corrections records
      description: Every fix we made to a fact, link or out-of-date detail.
      responses:
        "200":
          description: A list of records
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/corrections"
  /corrections/{id}.json:
    get:
      summary: One corrections record
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The record
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/corrections"
        "404":
          description: No record with that id
components:
  schemas:
    orgs:
      type: object
      description: "Organizations: nonprofits, government offices, schools, community
        groups and others."
      required:
        - name
        - slug
        - kind
        - summary
        - topics
        - area
        - sources
      properties:
        name:
          type: string
          description: Name of the organization
        slug:
          type: string
          description: Stable id, used in the record URL
        kind:
          type: string
          description: What kind of group it is
          enum:
            - nonprofit
            - government
            - community-group
            - business
            - school
            - faith
        website:
          type: string
          description: Its own website
          format: uri
        phone:
          type: string
          description: Public main phone number, as the source gives it
        summary:
          type: string
          description: One or two plain sentences on what it does
        topics:
          type: array
          items:
            type: string
          description: Topic tags (see content/doors.yaml)
        area:
          type: string
          description: Where it works
          enum:
            - morgantown
            - monongalia-county
            - statewide
            - national
        sources:
          type: array
          description: Public pages that back up this record. Check them before you act.
          items:
            type: object
            required:
              - url
              - checked
            properties:
              url:
                type: string
                description: A public page a person can open to check the facts
                format: uri
              checked:
                type: string
                format: date
                description: Date (YYYY-MM-DD, Morgantown time) the facts were last checked
                  against this page
              name:
                type: string
                description: Who published the page, when it is not clear from the address
              method:
                type: string
                description: "How the facts were read: hand (a person or agent read the page),
                  feed (from the publisher's own feed) or watched-page (read
                  from the page by a program)"
                enum:
                  - hand
                  - feed
                  - watched-page
              fetched:
                type: string
                description: When a program read the feed (UTC); only for feed records
                format: date-time
              feed:
                type: string
                description: Which feed, by id; only for feed records
              quote:
                type: string
                description: A few words copied from the page at the last re-read, showing it
                  was read again
              saved_copy:
                type: string
                description: "A copy of this page or file kept by the Internet Archive, checked
                  to match the file we read (#1906, #2079). For an address that
                  is replaced with each new version, the list of saved versions"
                format: uri
    resources:
      type: object
      description: "Things a person can use or do: programs, services, offices and lines."
      required:
        - title
        - slug
        - org
        - topics
        - who_it_is_for
        - what_to_do
        - contact
        - sources
      properties:
        title:
          type: string
          description: Short name of the program or service
        slug:
          type: string
          description: Stable id, used in the record URL
        org:
          type: string
          description: Slug of the organization that runs it (see orgs)
        topics:
          type: array
          items:
            type: string
          description: Topic tags (see content/doors.yaml)
        who_it_is_for:
          type: string
          description: Who it is for, in the source's terms. It does not decide who
            qualifies.
        hours:
          type: string
          description: Hours in words, as the source gives them
        what_to_do:
          type: string
          description: How to use it
        steps:
          type: array
          items:
            type: string
          description: Optional. What to do, in order, as short sentences
        options:
          type: array
          items:
            type: string
          description: Optional. Choices where order does not matter, like the kinds of ID
            that count
        notes:
          type: array
          items:
            type: string
          description: Optional. Exceptions and special cases, as short paragraphs
        contact:
          type: object
          description: Public contact details for the program. Never a private person.
          properties:
            phone:
              type: string
              description: Public phone number
            text:
              type: string
              description: Public text line
            url:
              type: string
              description: Web page to act on
              format: uri
            url_label:
              type: string
              description: Short label for the web link, like "Apply online"
            place:
              type: string
              description: Street address the source publishes
            email:
              type: string
              description: Public email address
        cost:
          type: string
          description: What it costs, as the source says
        sources:
          type: array
          description: Public pages that back up this record. Check them before you act.
          items:
            type: object
            required:
              - url
              - checked
            properties:
              url:
                type: string
                description: A public page a person can open to check the facts
                format: uri
              checked:
                type: string
                format: date
                description: Date (YYYY-MM-DD, Morgantown time) the facts were last checked
                  against this page
              name:
                type: string
                description: Who published the page, when it is not clear from the address
              method:
                type: string
                description: "How the facts were read: hand (a person or agent read the page),
                  feed (from the publisher's own feed) or watched-page (read
                  from the page by a program)"
                enum:
                  - hand
                  - feed
                  - watched-page
              fetched:
                type: string
                description: When a program read the feed (UTC); only for feed records
                format: date-time
              feed:
                type: string
                description: Which feed, by id; only for feed records
              quote:
                type: string
                description: A few words copied from the page at the last re-read, showing it
                  was read again
              saved_copy:
                type: string
                description: "A copy of this page or file kept by the Internet Archive, checked
                  to match the file we read (#1906, #2079). For an address that
                  is replaced with each new version, the list of saved versions"
                format: uri
    calendar:
      type: object
      description: "Deadlines and dates that have not ended yet: hand-checked entries
        plus entries pulled from public calendar feeds each day."
      required:
        - title
        - slug
        - starts
        - ends
        - org_name
        - who_it_is_for
        - what_to_do
        - url
        - sources
      properties:
        title:
          type: string
          description: What is happening
        slug:
          type: string
          description: Stable id, used in the record URL
        starts:
          type: string
          format: date
          description: First day (YYYY-MM-DD)
        ends:
          type: string
          format: date
          description: Last day (YYYY-MM-DD); same as starts for a single day
        start_time:
          type: string
          description: Start time, 24-hour HH:MM Eastern, only when the source states it
        end_time:
          type: string
          description: End time, 24-hour HH:MM Eastern
        org_name:
          type: string
          description: Who runs it, or whose calendar listed it
        who_it_is_for:
          type: string
          description: Who it is for
        what_to_do:
          type: string
          description: What to do
        url:
          type: string
          description: Where a person should go to act
          format: uri
        topics:
          type: array
          items:
            type: string
          description: Topic tags (see content/doors.yaml)
        place:
          type: string
          description: Street address the source publishes
        phone:
          type: string
          description: Public office or program phone number
        phone_label:
          type: string
          description: Who answers the phone
        sources:
          type: array
          description: Public pages that back up this record. Check them before you act.
          items:
            type: object
            required:
              - url
              - checked
            properties:
              url:
                type: string
                description: A public page a person can open to check the facts
                format: uri
              checked:
                type: string
                format: date
                description: Date (YYYY-MM-DD, Morgantown time) the facts were last checked
                  against this page
              name:
                type: string
                description: Who published the page, when it is not clear from the address
              method:
                type: string
                description: "How the facts were read: hand (a person or agent read the page),
                  feed (from the publisher's own feed) or watched-page (read
                  from the page by a program)"
                enum:
                  - hand
                  - feed
                  - watched-page
              fetched:
                type: string
                description: When a program read the feed (UTC); only for feed records
                format: date-time
              feed:
                type: string
                description: Which feed, by id; only for feed records
              quote:
                type: string
                description: A few words copied from the page at the last re-read, showing it
                  was read again
              saved_copy:
                type: string
                description: "A copy of this page or file kept by the Internet Archive, checked
                  to match the file we read (#1906, #2079). For an address that
                  is replaced with each new version, the list of saved versions"
                format: uri
        feed:
          type: object
          description: "Only on entries pulled from a live calendar feed: which feed and
            when it was read."
          properties:
            id:
              type: string
              description: Feed id
            name:
              type: string
              description: Feed name
            url:
              type: string
              description: Feed address
              format: uri
            page_url:
              type: string
              description: The human page for the same calendar
              format: uri
            fetched:
              type: string
              description: When the feed was read (UTC)
              format: date-time
    needs:
      type: object
      description: "The needs register: ranked problems people in Mon County face,
        each with public, aggregate evidence and its sources. Describes
        problems; takes no policy side."
      required:
        - title
        - slug
        - summary
        - evidence
        - affected
        - severity
        - trend
        - topics
        - rank
      properties:
        title:
          type: string
          minLength: 3
          description: The need in a few plain words, like 'Paying winter heating bills'
        slug:
          type: string
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
          description: Matches the file name
        summary:
          type: string
          minLength: 20
          description: One to three plain sentences describing the problem. Describe; take
            no policy side.
        evidence:
          type: array
          minItems: 1
          description: Public, aggregate signals that show the need. Every item has a
            source.
          items:
            type: object
            additionalProperties: false
            required:
              - url
              - checked
              - shows
            properties:
              url:
                type: string
                format: uri
                pattern: ^https?://
              checked:
                type: string
                format: date
                description: Morgantown date the source was read
              shows:
                type: string
                description: What the source shows, in plain words
              figure:
                type: string
                description: The number as the source states it, like '17.2% of people'
              data_date:
                type: string
                description: The year or period the figure covers, as the source states it, like
                  '2023' or '2019 to 2023'
              publisher:
                type: string
                description: Who published the source
        affected:
          type: object
          additionalProperties: false
          required:
            - description
            - url
            - checked
          description: "How many people it affects: an aggregate count or estimate, with
            its source. Never a list of people."
          properties:
            count:
              type: integer
              minimum: 0
              description: A count, only when the source states it
            estimate:
              type: string
              description: A range or rate as the source states it, like 'about 1 in 6
                households'
            description:
              type: string
              description: Who is counted, in plain words
            url:
              type: string
              format: uri
              pattern: ^https?://
            checked:
              type: string
              format: date
        severity:
          enum:
            - low
            - medium
            - high
          description: How serious the harm is for the people it affects. Explain in
            severity_why.
        severity_why:
          type: string
        trend:
          enum:
            - better
            - worse
            - flat
            - unknown
          description: Use 'unknown' unless a source shows the change over time
        trend_why:
          type: string
          description: Which evidence shows the trend
        working_on:
          type: array
          description: Organizations already working on it. Groups, offices and programs
            only, never private people.
          items:
            type: object
            additionalProperties: false
            properties:
              org:
                type: string
                pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
                description: Slug from content/orgs/
              name:
                type: string
                description: Name of a group not in content/orgs/ yet
              url:
                type: string
                format: uri
            oneOf:
              - required:
                  - org
              - required:
                  - name
                  - url
        gaps:
          type: array
          items:
            type: string
          description: What is missing or hard to find, in plain words
        topics:
          type: array
          minItems: 1
          items:
            type: string
          description: Topic tags from content/doors.yaml
        rank:
          type: integer
          minimum: 1
          description: 1 is the most pressing. Unique across needs.
        rank_why:
          type: string
          description: The scoring behind the rank
        questions:
          type: array
          items:
            type: string
            pattern: ^q\d+$
          description: Related findability question ids from
            content/findability/questions.yaml
        issues:
          type: array
          items:
            type: integer
          description: GitHub issue numbers for ideas that address this need
        get_help:
          type: array
          description: Pages on this site where a person can get help with this need, best
            first. Shown on /needs/ as 'Where to get help on this site'.
          items:
            type: object
            required:
              - path
              - label
            additionalProperties: false
            properties:
              path:
                type: string
                pattern: ^/
                description: A path on this site, like /help/food/ or /money/?pick=rent. The
                  page must exist.
              label:
                type: string
                description: What the reader finds there, in plain words
        decided_by:
          type: array
          description: "Public bodies that set the rules for this need, and what each one
            decides for it (#1689). Shown on topic pages as 'Who sets the rules
            for this'. Describe only: no 'should', and no position on any rule."
          items:
            type: object
            required:
              - body
              - decides
              - sources
            additionalProperties: false
            properties:
              body:
                type: string
                description: The id of a body in site/src/lib/who-decides.mjs
              board:
                type: string
                description: "Optional: the slug of the matching file in content/boards/, so the
                  block can show open seats for residents"
              decides:
                type: string
                description: One or two plain sentences on what this body decides for this need
              sources:
                type: array
                minItems: 1
                items:
                  type: object
                  required:
                    - url
                    - checked
                  additionalProperties: false
                  properties:
                    url:
                      type: string
                    checked:
                      type: string
                      format: date
        site_coverage:
          type: object
          description: How well this site helps with the need today. A self-check, not a
            measure of the need itself.
          required:
            - level
            - why
            - checked
          additionalProperties: false
          properties:
            level:
              type: string
              enum:
                - good
                - partial
                - thin
              description: "good: a clear starting page and the main help is listed. partial:
                help is listed but spread out or missing a piece. thin: little
                on the site yet."
            why:
              type: string
              description: One or two plain sentences on what the site has and what it lacks
            checked:
              type: string
              format: date
              description: Date (YYYY-MM-DD) the site's pages were checked for this
            before:
              type: object
              description: The rating before the last change (#1534), so /needs/ can show
                before and after. Set it when the level changes; keep only the
                one just before.
              required:
                - level
                - checked
              additionalProperties: false
              properties:
                level:
                  type: string
                  enum:
                    - good
                    - partial
                    - thin
                checked:
                  type: string
                  format: date
                  description: Date of the earlier rating; must be before site_coverage.checked or
                    the same day
                why:
                  type: string
                  description: What was missing then, in one plain sentence
    meetings:
      type: object
      description: "Public meetings of City of Morgantown boards (and the bodies on
        its AgendaCenter) and the Monongalia County Commission, from the last
        120 days and ahead: meeting date, agenda link, and minutes link once
        posted. Read from the official pages each day."
      required:
        - slug
        - body
        - date
        - title
        - agenda_url
        - publisher
        - sources
        - first_seen
        - last_changed
      properties:
        slug:
          type: string
          description: Stable id, used in the record URL
        body:
          type: string
          description: The board, commission or council, as the publisher names it
        date:
          type: string
          format: date
          description: Meeting date (YYYY-MM-DD), as the publisher lists it
        title:
          type: string
          description: Agenda title, as posted
        agenda_url:
          type: string
          description: The posted agenda (usually a PDF)
          format: uri
        minutes_url:
          type: string
          description: The posted minutes; left out until they are posted
          format: uri
        publisher:
          type: string
          description: Who posts the agenda
        sources:
          type: array
          description: Public pages that back up this record. Check them before you act.
          items:
            type: object
            required:
              - url
              - checked
            properties:
              url:
                type: string
                description: A public page a person can open to check the facts
                format: uri
              checked:
                type: string
                format: date
                description: Date (YYYY-MM-DD, Morgantown time) the facts were last checked
                  against this page
              name:
                type: string
                description: Who published the page, when it is not clear from the address
              method:
                type: string
                description: "How the facts were read: hand (a person or agent read the page),
                  feed (from the publisher's own feed) or watched-page (read
                  from the page by a program)"
                enum:
                  - hand
                  - feed
                  - watched-page
              fetched:
                type: string
                description: When a program read the feed (UTC); only for feed records
                format: date-time
              feed:
                type: string
                description: Which feed, by id; only for feed records
              quote:
                type: string
                description: A few words copied from the page at the last re-read, showing it
                  was read again
              saved_copy:
                type: string
                description: "A copy of this page or file kept by the Internet Archive, checked
                  to match the file we read (#1906, #2079). For an address that
                  is replaced with each new version, the list of saved versions"
                format: uri
        first_seen:
          type: string
          format: date
          description: Date we first saw this agenda
        last_changed:
          type: string
          format: date
          description: Date we last saw the agenda or minutes change
        agenda_first_seen:
          type: string
          format: date
          description: Date we first saw the posted agenda at this link
        minutes_first_seen:
          type: string
          format: date
          description: Date we first saw the posted minutes at this link; left out until
            they are posted
    agenda_guides:
      type: object
      description: "Plain-language agenda guides for public meetings of City of
        Morgantown boards, the County Commission, regional boards and towns
        (#529, #2084). Each item keeps the agenda title word for word, with its
        kind and one neutral line on what kind of item it is, never whether it
        is good or bad. Private people's names are written as [name]. Kept after
        the meeting, so past guides stay here too."
      required:
        - slug
        - body
        - body_name
        - meeting
        - date
        - agenda_url
        - items
        - read
        - sources
        - page_url
      properties:
        slug:
          type: string
          description: Stable id, <body>-<date>, used in the record URL
        body:
          type: string
          description: Body id (see body_name)
        body_name:
          type: string
          description: The board, commission or council
        meeting:
          type: string
          description: The meeting, as the agenda names it
        date:
          type: string
          format: date
          description: Meeting date (YYYY-MM-DD)
        time:
          type: string
          description: Start time, 24-hour HH:MM Eastern, as the agenda gives it
        place:
          type: string
          description: Where, as the agenda gives it
        watch:
          type: string
          description: How to watch, as the agenda or body says, or that no stream is named
        agenda_url:
          type: string
          description: The official agenda
          format: uri
        agenda_saved_copy:
          type: string
          description: A copy of the agenda kept by the Internet Archive, checked to match
            the file we read
          format: uri
        packet_url:
          type: string
          description: The full packet, when posted
          format: uri
        read:
          type: string
          format: date
          description: Date we read the agenda
        items:
          type: array
          description: Every agenda item, in agenda order
          items:
            type: object
            required:
              - number
              - title
              - kind
              - kind_label
              - line
            properties:
              number:
                type: string
                description: Item number, as on the agenda
              title:
                type: string
                description: The agenda's own words, exactly
              kind:
                type: string
                description: What kind of item it is
                enum:
                  - opening
                  - minutes
                  - consent
                  - public-comment
                  - public-hearing
                  - first-reading
                  - later-reading
                  - vote
                  - request
                  - appointments
                  - bids
                  - personnel
                  - proclamation
                  - presentation
                  - correspondence
                  - report
                  - discussion
                  - executive-session
                  - other
                  - closing
              kind_label:
                type: string
                description: The kind in words
              line:
                type: string
                description: One to three plain sentences on what kind of item it is, from facts
                  in the agenda or packet only
              parts:
                type: array
                items:
                  type: string
                description: Short routine sub-items, as the agenda lists them
        note:
          type: string
          description: Anything else a reader should know, from the agenda
        page_url:
          type: string
          description: Where the guide shows on the site
          format: uri
        sources:
          type: array
          description: Public pages that back up this record. Check them before you act.
          items:
            type: object
            required:
              - url
              - checked
            properties:
              url:
                type: string
                description: A public page a person can open to check the facts
                format: uri
              checked:
                type: string
                format: date
                description: Date (YYYY-MM-DD, Morgantown time) the facts were last checked
                  against this page
              name:
                type: string
                description: Who published the page, when it is not clear from the address
              method:
                type: string
                description: "How the facts were read: hand (a person or agent read the page),
                  feed (from the publisher's own feed) or watched-page (read
                  from the page by a program)"
                enum:
                  - hand
                  - feed
                  - watched-page
              fetched:
                type: string
                description: When a program read the feed (UTC); only for feed records
                format: date-time
              feed:
                type: string
                description: Which feed, by id; only for feed records
              quote:
                type: string
                description: A few words copied from the page at the last re-read, showing it
                  was read again
              saved_copy:
                type: string
                description: "A copy of this page or file kept by the Internet Archive, checked
                  to match the file we read (#1906, #2079). For an address that
                  is replaced with each new version, the list of saved versions"
                format: uri
    meeting_decisions:
      type: object
      description: "What public meetings decided, from their official minutes (#529,
        #2084): every motion the minutes record, in order, with the result and
        vote count as written. No debate, reasons, speakers or public comment.
        Who moved and seconded is left out, and private people's names are
        written as [name]. Check minutes_status: draft minutes can change."
      required:
        - slug
        - body
        - body_name
        - meeting
        - date
        - minutes_url
        - minutes_status
        - read
        - actions
        - sources
        - page_url
      properties:
        slug:
          type: string
          description: Stable id, <body>-<date>, used in the record URL
        body:
          type: string
          description: Body id (see body_name)
        body_name:
          type: string
          description: The board, commission or council
        meeting:
          type: string
          description: The meeting, as the minutes name it
        date:
          type: string
          format: date
          description: Meeting date (YYYY-MM-DD)
        minutes_url:
          type: string
          description: The official minutes, or the page that posts them
          format: uri
        minutes_status:
          type: string
          description: How final the minutes are, as they say
          enum:
            - Approved
            - Draft
            - Not marked
        minutes_status_note:
          type: string
          description: What the status means, in words
        read:
          type: string
          format: date
          description: Date we read the minutes
        actions:
          type: array
          description: Every motion the minutes record a result for, in the minutes' order
          items:
            type: object
            required:
              - motion
            properties:
              item:
                type: string
                description: The agenda number or title, as the minutes give it
              motion:
                type: string
                description: The motion's words, as written
              result:
                type: string
                description: The result, as written. Left out when the minutes record none
              vote:
                type: string
                description: The vote count, as written or counted from a roll call
        note:
          type: string
          description: Anything else a reader should know, such as where an approved copy is
        page_url:
          type: string
          description: Where the record shows on the site
          format: uri
        sources:
          type: array
          description: Public pages that back up this record. Check them before you act.
          items:
            type: object
            required:
              - url
              - checked
            properties:
              url:
                type: string
                description: A public page a person can open to check the facts
                format: uri
              checked:
                type: string
                format: date
                description: Date (YYYY-MM-DD, Morgantown time) the facts were last checked
                  against this page
              name:
                type: string
                description: Who published the page, when it is not clear from the address
              method:
                type: string
                description: "How the facts were read: hand (a person or agent read the page),
                  feed (from the publisher's own feed) or watched-page (read
                  from the page by a program)"
                enum:
                  - hand
                  - feed
                  - watched-page
              fetched:
                type: string
                description: When a program read the feed (UTC); only for feed records
                format: date-time
              feed:
                type: string
                description: Which feed, by id; only for feed records
              quote:
                type: string
                description: A few words copied from the page at the last re-read, showing it
                  was read again
              saved_copy:
                type: string
                description: "A copy of this page or file kept by the Internet Archive, checked
                  to match the file we read (#1906, #2079). For an address that
                  is replaced with each new version, the list of saved versions"
                format: uri
    places:
      type: object
      description: "Gathering places: community centers, senior centers, neighborhood
        houses, rec buildings and fire halls that rent a hall, with what they
        have and how to use them."
      required:
        - name
        - slug
        - kind
        - area
        - community
        - run_by
        - story
        - status
        - sources
      properties:
        name:
          type: string
          minLength: 1
        other_names:
          type: array
          items:
            type: string
          description: Other names sources use. List both when sources disagree.
        slug:
          type: string
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
        kind:
          enum:
            - community-center
            - senior-center
            - neighborhood-house
            - rec-center
            - park-building
            - fire-hall
            - library
            - group
            - park
        area:
          enum:
            - south
            - west
            - north
            - east
            - morgantown
          description: Part of the county, for grouping. morgantown means Morgantown and
            close in.
        community:
          type: string
          description: The community or town name people would type.
        run_by:
          type: object
          required:
            - kind
          additionalProperties: false
          properties:
            kind:
              enum:
                - volunteer-association
                - county
                - city
                - nonprofit
                - fire-department
                - parks-board
                - park-foundation
                - library
                - business
                - university
                - community-group
            org:
              type: string
              description: Slug of a content/orgs entry, if there is one.
            text:
              type: string
              description: Who runs it, in words, as the source says.
        story:
          type: string
          description: One plain line.
        facilities:
          type: object
          additionalProperties: false
          properties:
            rooms:
              type: array
              items:
                type: object
                required:
                  - name
                additionalProperties: false
                properties:
                  name:
                    type: string
                  seats:
                    type: integer
                    minimum: 1
            kitchen:
              type: boolean
            gym:
              type: boolean
            outdoor:
              type: array
              items:
                type: string
              description: Pavilion, playground, ballfield and the like, in words.
            other:
              type: array
              items:
                type: string
            step_free:
              type: boolean
              description: Only when the source says so.
        opening_hours:
          type: array
          minItems: 1
          description: When it is open, as a list of { days, opens, closes }, the same
            shape resources use (content/README.md). Cards show it as short
            lines, days with the same hours together (#1439).
          items:
            type: object
            required:
              - days
              - opens
              - closes
            additionalProperties: false
            properties:
              days:
                type: array
                items:
                  enum:
                    - mon
                    - tue
                    - wed
                    - thu
                    - fri
                    - sat
                    - sun
              opens:
                type: string
                description: Quoted 24-hour time like "08:30".
              closes:
                type: string
                description: Quoted 24-hour time like "17:00".
        drop_in:
          type: string
          minLength: 1
          description: Who can come in and sit during open hours, as the source says, like
            'Anyone' or 'People 50 and older'. Only when the source says so.
            Puts the place under Free places to sit on Find your people (#1439).
            Library branches are listed there without it.
        regular:
          type: array
          items:
            type: string
          description: "Weekly or monthly happenings in words. Dated events go in
            content/calendar/ with venue: <slug>."
        membership:
          type: object
          required:
            - dues
          additionalProperties: false
          properties:
            dues:
              type: string
            covers:
              type: string
        rentals:
          type: array
          items:
            type: object
            required:
              - space
              - book
            additionalProperties: false
            properties:
              space:
                type: string
              seats:
                type: integer
                minimum: 1
              kitchen:
                type: boolean
              outdoor:
                type: boolean
              price:
                type: string
                description: As the source gives it, in words. Leave out when not published.
              deposit:
                type: string
              book:
                type: string
                description: How to book, in words. Public contact only.
              source:
                type: string
                format: uri
                description: The page with the price, if not the first source.
        contact:
          type: object
          additionalProperties: false
          properties:
            phone:
              type: string
            url:
              type: string
              format: uri
            url_label:
              type: string
            facebook:
              type: string
              format: uri
            email:
              type: string
            place:
              type: string
              description: Only an address the place itself (or its owner) publishes. Leave
                out when sources conflict.
        status:
          enum:
            - active
            - no-recent-activity
            - closed
            - renovating
        last_activity_seen:
          type: string
          format: date
          description: Date of the newest sign of activity we read. Over 6 months old
            shows 'No recent activity seen, call first'.
        tags:
          type: array
          items:
            enum:
              - family-friendly
              - free
              - come-alone
              - beginners
              - step-free
              - weekly
              - growing
        cost:
          type: string
          description: What it costs to take part, as the source says. Mostly for groups.
        venue:
          type: string
          description: "Groups only: slug of the place in content/places where it meets."
        interests:
          type: array
          items:
            enum:
              - games
              - books
              - crafts
              - arts
              - music
              - dance
              - theater
              - outdoors
              - running
              - cycling
              - sports
              - food
              - languages
              - learning
              - growing
              - social
              - service
              - families
              - lgbtq
              - newcomers
          description: "Groups: what it is about, for the Find your people finder (#263)."
        notes:
          type: array
          items:
            type: string
          description: Gaps and conflicts residents should know, like 'Sources give two
            addresses, so call first.'
        sources:
          type: array
          minItems: 1
          items:
            type: object
            required:
              - url
              - checked
            properties:
              url:
                type: string
                format: uri
              checked:
                type: string
                format: date
              name:
                type: string
        phone_confirmed:
          type: string
          format: date
          description: When a person confirmed the details by phone (#164).
    corrections:
      type: object
      description: Every fix we made to a fact, link or out-of-date detail.
      required:
        - id
        - date
        - item
        - kind
        - what
      properties:
        id:
          type: string
          description: Stable id, from the file name
        date:
          type: string
          format: date
          description: Morgantown date the fix went live
        item:
          type: string
          description: What was fixed
        page:
          type: string
          description: Site path where the item shows
        kind:
          type: string
          description: Kind of fix
          enum:
            - fact
            - link
            - outdated
            - wording
        found_by:
          type: string
          description: How the problem was found
          enum:
            - our-check
            - works-there
            - helper
            - used-it
            - other
        what:
          type: string
          description: What was wrong and what it says now
        link:
          type: string
          description: The public change that made the fix
          format: uri
