Merge pull request #43 from zowe/fix/v3/missing-schema

Add schema for use in v2 and v3
This commit is contained in:
1000TurquoisePogs
2024-10-02 22:51:39 +02:00
committed by GitHub
2 changed files with 23 additions and 0 deletions

View File

@@ -18,3 +18,5 @@ apimlServices:
- file: sample-node-api.yml
configs:
port: 18000
schemas:
configs: trivial-schema.json

21
trivial-schema.json Normal file
View File

@@ -0,0 +1,21 @@
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://abcdef.com/schemas/v2/sample-node-api",
"allOf": [
{ "$ref": "https://zowe.org/schemas/v2/server-base" },
{
"type": "object",
"properties": {
"components": {
"type": "object",
"additionalProperties": true,
"properties": {
"sample-iframe": {
"$ref": "https://zowe.org/schemas/v2/server-base#zoweComponent"
}
}
}
}
}
]
}