Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Formating cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Lasker <[email protected]>
  • Loading branch information
SteveLasker committed Aug 26, 2019
1 parent e5043d0 commit ed2dd09
Show file tree
Hide file tree
Showing 14 changed files with 816 additions and 22 deletions.
173 changes: 173 additions & 0 deletions artifactTypes/artifactTypeSchema.0.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
{
"definitions": {},
"type": "object",
"title": "The Root Schema",
"required": [
"mediaType",
"title",
"description",
"layerMediaTypes"
],
"properties": {
"mediaType": {
"$id": "#/properties/mediaType",
"type": "string",
"description": "Collection of localized titles, which may be displayed in registry and tool artifact listing.",
"default": "application/vnd.oci.unknown.config.v1+json",
"examples": [
"application/vnd.oci.unknown.config.v1+json"
],
"minLength": 35,
"maxLength": 100
},
"title": {
"$id": "#/properties/title",
"type": "object",
"description": "Collection of localized titles, which may be displayed in registry and tool artifact listing.",
"required": [
"locale",
"title"
],
"properties": {
"locale": {
"$id": "#/properties/title/items/properties/locale",
"type": "string",
"description": "language-locale ISO code",
"default": "en-US",
"examples": [
"en-US"
],
"minLength": 5,
"maxLength": 5
},
"title": {
"$id": "#/properties/title/items/properties/title",
"type": "string",
"description": "Localized title of the artifact type.",
"default": "",
"examples": [
"Unknown type"
],
"minLength": 3,
"maxLength": 30
}
}
},
"description": {
"$id": "#/properties/description",
"type": "object",
"description": "Provides a short description of the type for human consumption.",
"required": [
"locale",
"description"
],
"properties": {
"locale": {
"$id": "#/properties/title/properties/locale",
"type": "string",
"description": "language-locale ISO code",
"default": "en-US",
"examples": [
"en-US"
],
"minLength": 5,
"maxLength": 5
},
"description": {
"$id": "#/properties/description/properties/description",
"type": "string",
"description": "Localized description of the artifact type.",
"examples": [
"Unknown type"
],
"minLength": 5,
"maxLength": 255
}
}
},
"specUrl": {
"$id": "#/properties/specUrl",
"type": "string",
"description": "References a spec, providing additional details on the type.",
"format": "url"
},
"moreInfoUrl": {
"$id": "#/properties/moreInfoUrl",
"type": "string",
"description": "Provides additional details, intended for consumers of the type.",
"format": "url"
},
"tools": {
"$id": "#/properties/tools",
"type": "array",
"description": "Provides a collection of tools that may be used with artifact type.",
"items": {
"$id": "#/properties/tools/items",
"type": "object",
"required": [
"url",
"title"
],
"properties": {
"url": {
"$id": "#/properties/tools/items/properties/url",
"type": "string",
"description": "Links to a page where users can download the tool."
},
"title": {
"$id": "#/properties/tools/items/properties/title",
"type": "object",
"description": "Represents the name of the tool, displayed for human consumption.",
"required": [
"locale",
"title"
],
"properties": {
"locale": {
"$id": "#/properties/tools/items/properties/title/items/properties/locale",
"type": "string",
"description": "language-locale ISO code",
"default": "en-US",
"examples": [
"en-US"
],
"minLength": 5,
"maxLength": 5
},
"title": {
"$id": "#/properties/tools/items/properties/title/items/properties/title",
"type": "string",
"description": "Localized name of the tool, displayed for human consumption.",
"minLength": 3,
"maxLength": 30
}
}
}
}
}
},
"configSchemaReference": {
"$id": "#/properties/configSchemaReference",
"type": "string",
"description": "provides a schema reference for the artifact config object.",
"format": "url"
},
"layerMediaTypes": {
"$id": "#/properties/layerMediaTypes",
"type": "array",
"description": "Represents one or more layer mediaTypes, defined by the artifact.",
"items": {
"$id": "#/properties/layerMediaTypes/items",
"type": "string",
"default": "application/vnd.oci.unknown.layer.v1.tar",
"examples": [
"application/vnd.oci.unknown.layer.v1.bin",
"application/vnd.oci.unknown.layer.v1.json",
"application/vnd.oci.unknown.layer.v1.tar",
"application/vnd.oci.unknown.layer.v1.txt",
"application/vnd.oci.unknown.layer.v1.yaml"
]
}
}
}
}
30 changes: 30 additions & 0 deletions artifactTypes/vnd.oci-unknown.1/artifactType.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"mediaType": "application/vnd.oci.image.config.v1+json",
"spec": "https://github.com/opencontainers/artifacts",
"title": {
"locale": "en-US",
"title": "An unknown type"
},
"description": {
"locale": "en-US",
"description": "An undefined type - USE ONLY FOR DEVELOPMENT"
},
"url": "https://github.com/opencontainers/artifacts",
"tools":[
{
"title": {
"locale": "en-US",
"title": "ORAS"
},
"url": "https://github.com/deislabs/oras"
}
],
"configSchemaReference": "https://raw.githubusercontent.com/SteveLasker/scratch/master/artifactTypeSchema.json",
"layerMediaTypes": [
"application/vnd.oci.unknown.layer.v1.bin",
"application/vnd.oci.unknown.layer.v1.json",
"application/vnd.oci.unknown.layer.v1.tar",
"application/vnd.oci.unknown.layer.v1.txt",
"application/vnd.oci.unknown.layer.v1.yaml"
]
}
22 changes: 22 additions & 0 deletions artifactTypes/vnd.oci-unknown.1/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions artifactTypes/vnd.oci.image.1/artifactType.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"mediaType": "application/vnd.oci.image.config.v1+json",
"spec": "https://github.com/opencontainers/image-spec/blob/master/layer.md#gzip-media-types",
"title": {
"locale": "en-US",
"title": "OCI Image"
},
"description": {
"locale": "en-US",
"description": "OCI Image"
},
"url": "https://www.opencontainers.org/",
"tools":[
{
"title": {
"locale": "en-US",
"title": "OCI Runtime"
},
"url": "https://github.com/opencontainers/runtime-tools"
}
],
"configSchemaReference": "https://raw.githubusercontent.com/opencontainers/image-spec/master/schema/config-schema.json",
"layerMediaTypes": [
"application/vnd.oci.image.layer.v1.tar"
]
}
22 changes: 22 additions & 0 deletions artifactTypes/vnd.oci.image.1/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ed2dd09

Please sign in to comment.