Sha256: 273126fe231571f280a77158d8044f945ccec2d66eb62ae85b90696a23851950

Contents?: true

Size: 1.82 KB

Versions: 6

Compression:

Stored size: 1.82 KB

Contents

{
  "id": "funding.json#",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "description": "",
  "required": [],
  "minProperties": 1,
  "additionalProperties": true,
  "anyOf": [{
      "title": "allocation is required",
      "required": ["allocation"]
    },
    {
      "title": "timePeriod is required",
      "required": ["timePeriod"]
    }
  ],
  "properties": {
    "allocation": {
      "type": "array",
      "description": "Funds contributed to support the development of the resource.",
      "items": {
        "$ref": "#/definitions/allocation"
      }
    },
    "timePeriod": {
      "$ref": "./timePeriod.json#",
      "description": "The period for which the allocation is relevant.",
      "example": ""
    }
  },
  "definitions": {
    "allocation": {
      "type": "object",
      "example": "../examples/allocation.json",
      "required": ["amount", "currency"],
      "additionalProperties": true,
      "properties": {
        "amount": {
          "type": "number",
          "description": "The amount of the allocation in the indicated currency."
        },
        "currency": {
          "type": "string",
          "description": "The ISO 4217 currency code."
        },
        "sourceId": {
          "type": "string",
          "description": "The contactId of the entity providing the allocation."
        },
        "recipientId": {
          "type": "string",
          "description": "The contactId of the entity receiving the allocation."
        },
        "matching": {
          "type": "boolean",
          "description": "Indicates whether the funds are to be considered matching funds.",
          "default": false
        },
        "comment": {
          "type": "string",
          "description": "Additional information relevant to the allocation."
        }
      }
    }
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adiwg-mdjson_schemas-2.2.0 schema/funding.json
adiwg-mdjson_schemas-2.1.2 schema/funding.json
adiwg-mdjson_schemas-2.1.1 schema/funding.json
adiwg-mdjson_schemas-2.1.0 schema/funding.json
adiwg-mdjson_schemas-2.0.3 schema/funding.json
adiwg-mdjson_schemas-2.0.2 schema/funding.json