Fix JsonSchema indexes
JsonSchema was throwing errors in the validator, so implement changes to
the update script to add the appropiate indexes.
Tested by:
Schema validator passes on the JsonSchema Fields
Change-Id: I6cb2737901b55c1089aef744d3ce3c3dfe13f17f
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/static/redfish/v1/JsonSchemas/redfish-schema/index.json b/static/redfish/v1/JsonSchemas/redfish-schema/index.json
index 7308bf7..4294201 100644
--- a/static/redfish/v1/JsonSchemas/redfish-schema/index.json
+++ b/static/redfish/v1/JsonSchemas/redfish-schema/index.json
@@ -1,101 +1,21 @@
{
- "id": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_4_0",
- "type": "object",
- "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_4_0",
- "title": "Redfish Schema Extension",
- "description": "The properties defined in this schema shall adhere to the requirements of the Redfish Specification and the semantics of the descriptions in this file.",
- "allOf": [
+ "@odata.context": "/redfish/v1/$metadata#JsonSchemaFile.JsonSchemaFile",
+ "@odata.id": "/redfish/v1/JSONSchemas/redfish-schema",
+ "@odata.type": "#JsonSchemaFile.v1_0_2.JsonSchemaFile",
+ "Name": "redfish-schema Schema File",
+ "Schema": "#redfish-schema.redfish-schema",
+ "Description": "redfish-schema Schema File Location",
+ "Id": "redfish-schema",
+ "Languages": [
+ "en"
+ ],
+ "Languages@odata.count": 1,
+ "Location": [
{
- "$ref": "http://json-schema.org/draft-04/schema"
+ "Language": "en",
+ "PublicationUri": "http://redfish.dmtf.org/schemas/v1/redfish-schema.json",
+ "Uri": "/redfish/v1/JSONSchemas/redfish-schema/redfish-schema.json"
}
],
- "definitions": {
- "readonly": {
- "type": "boolean",
- "description": "This property shall designate a property to be readonly when set to true."
- },
- "requiredOnCreate": {
- "type": "array",
- "items": {
- "type": "boolean"
- },
- "description": "This property is required to be specified in the body of a POST request to create the resource."
- },
- "requiredParameter": {
- "type": "boolean",
- "description": "This property specifies that an action parameter is required to be provided by the client as part of the action request when set to true. Parameters not containing this property with the value of true can be left out of the client's action request."
- },
- "longDescription": {
- "type": "string",
- "description": "This attribute shall contain normative language relating to the Redfish Specification and documentation."
- },
- "copyright": {
- "type": "string",
- "description": "This attribute shall contain the copyright notice for the schema."
- },
- "deprecated": {
- "type": "string",
- "description": "The term shall be applied to a property in order to specify that the property is deprecated. The value of the string should explain the deprecation, including new property or properties to be used. The property can be supported in new and existing implementations, but usage in new implementations is discouraged. Deprecated properties are likely to be removed in a future major version of the schema."
- },
- "enumDescriptions": {
- "type": "object",
- "description": "This attribute shall contain informative language related to the enumeration values of the property."
- },
- "enumLongDescriptions": {
- "type": "object",
- "description": "This attribute shall contain normative language relating to the enumeration values of the property."
- },
- "enumDeprecated": {
- "type": "object",
- "description": "The term shall be applied to a value in order to specify that the value is deprecated. The value of the string should explain the deprecation, including new value to be used. The value can be supported in new and existing implementations, but usage in new implementations is discouraged. Deprecated values are likely to be removed in a future major version of the schema."
- },
- "units": {
- "type": "string",
- "description": "This attribute shall contain the units of measure used by the value of the property."
- },
- "owningEntity": {
- "type": "string",
- "description": "Indicates the name of the entity responsible for development, publication and maintenance of a given schema. Possible values include DMTF, SNIA or an OEM label such as is used in a Redfish OEM extension section."
- }
- },
- "properties": {
- "readonly": {
- "$ref": "#/definitions/readonly"
- },
- "requiredOnCreate": {
- "$ref": "#/definitions/requiredOnCreate"
- },
- "requiredParameter": {
- "$ref": "#/definitions/requiredParameter"
- },
- "longDescription": {
- "$ref": "#/definitions/longDescription"
- },
- "copyright": {
- "$ref": "#/definitions/copyright"
- },
- "deprecated": {
- "$ref": "#/definitions/deprecated"
- },
- "enumDescriptions": {
- "$ref": "#/definitions/enumDescriptions"
- },
- "enumLongDescriptions": {
- "$ref": "#/definitions/enumLongDescriptions"
- },
- "enumDeprecated": {
- "$ref": "#/definitions/enumDeprecated"
- },
- "units": {
- "$ref": "#/definitions/units"
- },
- "parameters": {
- "type": "object",
- "description": "This term shall contain parameter definitions for a given action.",
- "additionalProperties": { "$ref": "#" }
- },
- "owningEntity": {
- "$ref": "#/definitions/owningEntity"
- }
- }
-}
+ "Location@odata.count": 1
+}
\ No newline at end of file