diff --git a/lib/defaults.js b/lib/defaults.js index 1423a0a..9353385 100644 --- a/lib/defaults.js +++ b/lib/defaults.js @@ -18,6 +18,7 @@ const nameWithSpaces = (name) => { * @module defaults */ module.exports = { + $schema: "https://sap.github.io/open-resource-discovery/spec-v1/interfaces/Document.schema.json", openResourceDiscovery: "1.9", policyLevel: "none", description: "this is an application description", diff --git a/lib/ord.js b/lib/ord.js index 6cb1c0c..cb0751d 100644 --- a/lib/ord.js +++ b/lib/ord.js @@ -175,7 +175,8 @@ module.exports = (csn) => { throw error; } - let oReturn = {openResourceDiscovery: "1.9", + let oReturn = { $schema: "https://sap.github.io/open-resource-discovery/spec-v1/interfaces/Document.schema.json", + openResourceDiscovery: "1.9", policyLevel: fGetPolicyLevel(global), description: fGetDescription(global), products: fGetProducts(global), diff --git a/ord.md b/ord.md index 50298e9..bb4235c 100644 --- a/ord.md +++ b/ord.md @@ -40,9 +40,9 @@ The below is the table for all the supported ORD Fields containing defaults and Note: `namespace` is usually taken from `.cdsrc.json` if not we take the `package.json` name. - | ORD Field | Type | Defaults | Preset/Annotation | Usage Example | Description | |----------|----------|----------|----------|----------|----------| +| $schema | string | ```"https://sap.github.io/open-resource-discovery/spec-v1/interfaces/Document.schema.json"``` | Preset | ```"$schema": "https://sap.github.io/open-resource-discovery/spec-v1/interfaces/Document.schema.json"``` | Optional URL to the Open Resource Discovery document schema (defined as a JSON Schema). | | openResourceDiscovery | string |- | - | - | 1.9 (generated by plugin) | | policyLevel | string | ```"none"``` | Preset |```"policyLevel": "sap:core:v1"``` | The policy level (aka. compliance level) that this ORD Document or part of it needs to be compliant with. | | description | string | ```"description": "this is an application description"``` | Preset | ```"description": "this is a custom description"``` | The description of the ORD Document itself. |