# Generated by contracts/export_public_catalog.py from contracts/public_sources/fred.yaml -- do not edit by hand.
# Open Data Contract Standard v3.2.0 (https://bitol-io.github.io/open-data-contract-standard/).
apiVersion: v3.2.0
kind: DataContract
id: urn:alphaswarm:datacontract:fred:series-vintage-dates
name: Series Vintage Dates
version: 0.1.0
status: draft
domain: macroeconomics
tags:
- fred
- series
description:
  purpose: Discover dates when a series gained new data or its values changed.
  usage: Attach series_id from the request and use vintage_date to request observations as of that date.
    Use a registered FRED API key and keep credentials out of saved request URLs and logs.
  limitations: The dates identify changes to series data and omit releases where the series did not change.
    Series attribution and redistribution rights depend on the original data owner. Review the series
    notes and FRED terms of use.
  authoritativeDefinitions:
  - type: documentation
    url: https://fred.stlouisfed.org/docs/api/fred/series_vintagedates.html
    description: Dataset documentation
  - type: documentation
    url: https://fred.stlouisfed.org/legal/terms/
    description: FRED terms of use
servers:
- server: fred-api-v1
  type: api
  environment: vendor
  location: https://api.stlouisfed.org/fred/series/vintagedates
  description: JSON vintage_dates array when file_type=json. The API key is a query parameter and pagination
    uses limit and offset.
  customProperties:
  - property: channel
    value: api-v1
schema:
- name: series-vintage-dates
  description: Discover dates when a series gained new data or its values changed.
  dataGranularityDescription: One changed-data vintage date for a requested series.
  properties:
  - name: series_id
    logicalType: string
    required: true
    description: FRED series ID from the request
    primaryKey: true
    primaryKeyPosition: 1
  - name: vintage_date
    logicalType: date
    required: true
    description: Date taken from the vintage_dates array
    primaryKey: true
    primaryKeyPosition: 2
  quality:
  - id: primary_key_unique
    metric: duplicateValues
    mustBe: 0
    arguments:
      properties:
      - series_id
      - vintage_date
    dimension: uniqueness
    severity: error
    description: Check duplicate keys within a consistent source extract.
customProperties:
- property: vendorDataGroup
  value: series
- property: licensedData
  value: false
- property: knownIssues
  value:
  - Primary key is inferred for the documented row grain.
