mirror of
https://github.com/jlengrand/sample-node-api.git
synced 2026-03-10 08:41:23 +00:00
Merge pull request #43 from zowe/fix/v3/missing-schema
Add schema for use in v2 and v3
This commit is contained in:
@@ -18,3 +18,5 @@ apimlServices:
|
||||
- file: sample-node-api.yml
|
||||
configs:
|
||||
port: 18000
|
||||
schemas:
|
||||
configs: trivial-schema.json
|
||||
|
||||
21
trivial-schema.json
Normal file
21
trivial-schema.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user