forked from apache/camel-k
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a tool to generate json schema from custom resources apache#461
- Loading branch information
1 parent
0070c44
commit da609e6
Showing
6 changed files
with
1,600 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,352 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/CamelCatalog", | ||
"definitions": { | ||
"CamelArtifact": { | ||
"required": [ | ||
"groupId", | ||
"artifactId" | ||
], | ||
"properties": { | ||
"artifactId": { | ||
"type": "string" | ||
}, | ||
"dataformats": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"dependencies": { | ||
"items": { | ||
"$ref": "#/definitions/CamelArtifact" | ||
}, | ||
"type": "array" | ||
}, | ||
"exclusions": { | ||
"items": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/CamelArtifactExclusion" | ||
}, | ||
"type": "array" | ||
}, | ||
"groupId": { | ||
"type": "string" | ||
}, | ||
"languages": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"schemes": { | ||
"items": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/CamelScheme" | ||
}, | ||
"type": "array" | ||
}, | ||
"version": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"CamelArtifactExclusion": { | ||
"required": [ | ||
"groupId", | ||
"artifactId" | ||
], | ||
"properties": { | ||
"artifactId": { | ||
"type": "string" | ||
}, | ||
"groupId": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"CamelCatalog": { | ||
"properties": { | ||
"annotations": { | ||
"patternProperties": { | ||
".*": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"apiVersion": { | ||
"type": "string" | ||
}, | ||
"clusterName": { | ||
"type": "string" | ||
}, | ||
"creationTimestamp": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/Time" | ||
}, | ||
"deletionGracePeriodSeconds": { | ||
"type": "integer" | ||
}, | ||
"deletionTimestamp": { | ||
"$ref": "#/definitions/Time" | ||
}, | ||
"finalizers": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"generateName": { | ||
"type": "string" | ||
}, | ||
"generation": { | ||
"type": "integer" | ||
}, | ||
"initializers": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/Initializers" | ||
}, | ||
"kind": { | ||
"type": "string" | ||
}, | ||
"labels": { | ||
"patternProperties": { | ||
".*": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"type": "string" | ||
}, | ||
"ownerReferences": { | ||
"items": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/OwnerReference" | ||
}, | ||
"type": "array" | ||
}, | ||
"resourceVersion": { | ||
"type": "string" | ||
}, | ||
"selfLink": { | ||
"type": "string" | ||
}, | ||
"spec": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/CamelCatalogSpec" | ||
}, | ||
"status": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/CamelCatalogStatus" | ||
}, | ||
"uid": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"CamelCatalogSpec": { | ||
"required": [ | ||
"version", | ||
"artifacts" | ||
], | ||
"properties": { | ||
"artifacts": { | ||
"patternProperties": { | ||
".*": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/CamelArtifact" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"version": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"CamelCatalogStatus": { | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"CamelScheme": { | ||
"required": [ | ||
"id", | ||
"passive", | ||
"http" | ||
], | ||
"properties": { | ||
"http": { | ||
"type": "boolean" | ||
}, | ||
"id": { | ||
"type": "string" | ||
}, | ||
"passive": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"Initializer": { | ||
"required": [ | ||
"name" | ||
], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"Initializers": { | ||
"required": [ | ||
"pending" | ||
], | ||
"properties": { | ||
"pending": { | ||
"items": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/Initializer" | ||
}, | ||
"type": "array" | ||
}, | ||
"result": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/Status" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"OwnerReference": { | ||
"required": [ | ||
"apiVersion", | ||
"kind", | ||
"name", | ||
"uid" | ||
], | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string" | ||
}, | ||
"blockOwnerDeletion": { | ||
"type": "boolean" | ||
}, | ||
"controller": { | ||
"type": "boolean" | ||
}, | ||
"kind": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"uid": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"Status": { | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string" | ||
}, | ||
"code": { | ||
"type": "integer" | ||
}, | ||
"continue": { | ||
"type": "string" | ||
}, | ||
"details": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/StatusDetails" | ||
}, | ||
"kind": { | ||
"type": "string" | ||
}, | ||
"message": { | ||
"type": "string" | ||
}, | ||
"reason": { | ||
"type": "string" | ||
}, | ||
"resourceVersion": { | ||
"type": "string" | ||
}, | ||
"selfLink": { | ||
"type": "string" | ||
}, | ||
"status": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"StatusCause": { | ||
"properties": { | ||
"field": { | ||
"type": "string" | ||
}, | ||
"message": { | ||
"type": "string" | ||
}, | ||
"reason": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"StatusDetails": { | ||
"properties": { | ||
"causes": { | ||
"items": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/StatusCause" | ||
}, | ||
"type": "array" | ||
}, | ||
"group": { | ||
"type": "string" | ||
}, | ||
"kind": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"retryAfterSeconds": { | ||
"type": "integer" | ||
}, | ||
"uid": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"Time": { | ||
"additionalProperties": false, | ||
"type": "object" | ||
} | ||
} | ||
} |
Oops, something went wrong.