Skip to content

Commit

Permalink
Restyled by prettier-json
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Jan 22, 2024
1 parent 9667975 commit c508e9a
Showing 1 changed file with 26 additions and 98 deletions.
124 changes: 26 additions & 98 deletions spec/schema/v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,26 @@
"properties": {
"schema-version": {
"description": "Schema version being used",
"examples": [
"v2"
],
"examples": ["v2"],
"type": "string",
"default": "v2",
"enum": [
"v2"
]
"enum": ["v2"]
},
"dd-service": {
"description": "Unique identifier of the service. Must be unique across all services, and is used to match with a service in Datadog",
"examples": [
"my-service"
],
"examples": ["my-service"],
"type": "string",
"minLength": 1
},
"team": {
"description": "Team that owns the service",
"examples": [
"my-team"
],
"examples": ["my-team"],
"type": "string",
"minLength": 1
},
"dd-team": {
"description": "Experimental feature. A Team handle that matches a Team in the Datadog Teams product.",
"examples": [
"my-team"
],
"examples": ["my-team"],
"type": "string",
"minLength": 1,
"pattern": "[^A-Z ]+"
Expand Down Expand Up @@ -71,11 +61,7 @@
},
"tags": {
"description": "A set of custom tags",
"examples": [
[
"my:tag"
]
],
"examples": [["my:tag"]],
"type": "array",
"items": {
"type": "string"
Expand Down Expand Up @@ -108,19 +94,11 @@
"region": {
"description": "Opsgenie Instance Region",
"type": "string",
"examples": [
"US",
"EU"
],
"enum": [
"US",
"EU"
]
"examples": ["US", "EU"],
"enum": ["US", "EU"]
}
},
"required": [
"service-url"
],
"required": ["service-url"],
"additionalProperties": false
}
},
Expand All @@ -133,30 +111,21 @@
}
},
"additionalProperties": false,
"required": [
"schema-version",
"dd-service"
],
"required": ["schema-version", "dd-service"],
"$defs": {
"link": {
"additionalProperties": false,
"type": "object",
"properties": {
"name": {
"description": "Link name",
"examples": [
"Runbook",
"Dashboard"
],
"examples": ["Runbook", "Dashboard"],
"type": "string",
"minLength": 1
},
"type": {
"description": "Link type",
"examples": [
"runbook",
"dashboard"
],
"examples": ["runbook", "dashboard"],
"type": "string",
"enum": [
"doc",
Expand All @@ -172,45 +141,28 @@
},
"url": {
"description": "Link url",
"examples": [
"https://my-runbook"
],
"examples": ["https://my-runbook"],
"type": "string",
"format": "uri"
}
},
"required": [
"name",
"type",
"url"
]
"required": ["name", "type", "url"]
},
"contact": {
"additionalProperties": false,
"type": "object",
"properties": {
"name": {
"description": "Contact name",
"examples": [
"Oncall Slack",
"Team Email"
],
"examples": ["Oncall Slack", "Team Email"],
"type": "string",
"minLength": 2
},
"type": {
"description": "Contact type",
"examples": [
"email",
"slack",
"microsoft-teams"
],
"examples": ["email", "slack", "microsoft-teams"],
"type": "string",
"enum": [
"email",
"slack",
"microsoft-teams"
]
"enum": ["email", "slack", "microsoft-teams"]
},
"contact": {
"description": "Contact value",
Expand Down Expand Up @@ -255,81 +207,57 @@
}
}
],
"required": [
"type",
"contact"
]
"required": ["type", "contact"]
},
"doc": {
"additionalProperties": false,
"type": "object",
"properties": {
"name": {
"description": "Doc name",
"examples": [
"Architecture",
"RFC",
"Design"
],
"examples": ["Architecture", "RFC", "Design"],
"type": "string",
"minLength": 1
},
"provider": {
"description": "Doc provider",
"examples": [
"google drive",
"figma"
],
"examples": ["google drive", "figma"],
"type": "string",
"minLength": 1
},
"url": {
"description": "Doc url",
"examples": [
"https://gdrive/mydoc"
],
"examples": ["https://gdrive/mydoc"],
"type": "string",
"format": "uri"
}
},
"required": [
"name",
"url"
]
"required": ["name", "url"]
},
"repo": {
"additionalProperties": false,
"type": "object",
"properties": {
"name": {
"description": "Repo name",
"examples": [
"Source Code"
],
"examples": ["Source Code"],
"type": "string",
"minLength": 1
},
"provider": {
"description": "Repo provider",
"examples": [
"Github"
],
"examples": ["Github"],
"type": "string",
"minLength": 1
},
"url": {
"description": "Repo url",
"examples": [
"https://github.com/DataDog/schema"
],
"examples": ["https://github.com/DataDog/schema"],
"type": "string",
"format": "uri"
}
},
"required": [
"name",
"url"
]
"required": ["name", "url"]
}
}
}

0 comments on commit c508e9a

Please sign in to comment.