-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logical-version field version to the manifest schema
- Loading branch information
Showing
5 changed files
with
126 additions
and
5 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
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
96 changes: 96 additions & 0 deletions
96
core/src/main/resources/org/wildfly/manifest/v1.1.0/schema.json
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,96 @@ | ||
{ | ||
"$id": "https://wildfly.org/manifests/v1.0.0/schema.json", | ||
"$schema": "https://json-schema.org/draft/2019-09/schema#", | ||
"type": "object", | ||
"required": ["schemaVersion"], | ||
"properties": { | ||
"schemaVersion": { | ||
"description": "The version of the schema defining a manifest resource.", | ||
"type": "string", | ||
"pattern": "^[0-9]+.[0-9]+.[0-9]+$" | ||
}, | ||
"id": { | ||
"description": "ID of the manifest. Used to resolved inter-channel requirements." | ||
}, | ||
"name": { | ||
"description": "Name of the manifest. This is a one-line human-readable description of the manifest", | ||
"type": "string" | ||
}, | ||
"description": { | ||
"description": "Description of the manifest. This is a multi-lines human-readable description of the manifest", | ||
"type": "string" | ||
}, | ||
"logical-version": { | ||
"description": "Version of the manifest. This is a short, one-line, human-readable version of the manifest. Note it is not necessary the same as manifest's Maven version.", | ||
"type": "string" | ||
}, | ||
"requires": { | ||
"description": "Manifests that are required by this manifest.", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"minItems": 1, | ||
"properties": { | ||
"id": { | ||
"description": "ID of the required manifest.", | ||
"type": "string" | ||
}, | ||
"maven": { | ||
"type": "object", | ||
"properties": { | ||
"groupId": { | ||
"description": "GroupID Maven coordinate of the required manifest", | ||
"type": "string" | ||
}, | ||
"artifactId": { | ||
"description": "ArtifactID Maven coordinate of the required manifest", | ||
"type": "string" | ||
}, | ||
"version": { | ||
"description": "Version Maven coordinate of the required manifest", | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["groupId", "artifactId"] | ||
} | ||
}, | ||
"required": ["id"] | ||
} | ||
}, | ||
"streams":{ | ||
"description": "Streams of components that are provided by this channel", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"groupId": { | ||
"description": "GroupId of the stream. It must be a valid groupId (corresponding to a G of a Maven GAV)", | ||
"type": "string" | ||
}, | ||
"artifactId": { | ||
"description": "ArtifactId of the stream. It must be either a valid artifactId (corresponding to a A of a Maven GAV) or the * character to represent any artifactId", | ||
"type": "string" | ||
}, | ||
"version" : { | ||
"description": "Version of the stream. This must be a single version. Only one of version, versionPattern must be set.", | ||
"type": "string" | ||
}, | ||
"versionPattern" : { | ||
"description": "VersionPattern of the stream. This is a regular expression that matches any version from this stream. Only one of version, versionPattern must be set.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["groupId", "artifactId"], | ||
"oneOf": [ | ||
{ | ||
"required": ["version"] | ||
}, | ||
{ | ||
"required": ["versionPattern"] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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
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