Include Collections for JsonSchema resources
Redfish collection Json schema files are not versioned, and only have a
single version file. In the script, we assumed that all files were
versioned, and the script ignored files that didn't parse as versioned.
This commit fixes the script, and checks in the relevant Collection
resources.
Tested: Redfish service validator passes on JsonSchemas resources and
collection.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I579dac3fdfecf485f7d414842effa9ae0ee517e8
diff --git a/redfish-core/include/schemas.hpp b/redfish-core/include/schemas.hpp
index b981a8a..a165693 100644
--- a/redfish-core/include/schemas.hpp
+++ b/redfish-core/include/schemas.hpp
@@ -20,62 +20,96 @@
"AttributeRegistry",
"Bios",
"Cable",
+ "CableCollection",
"Certificate",
+ "CertificateCollection",
"CertificateLocations",
"CertificateService",
"Chassis",
+ "ChassisCollection",
"ComputerSystem",
+ "ComputerSystemCollection",
"Drive",
+ "DriveCollection",
"EthernetInterface",
+ "EthernetInterfaceCollection",
"Event",
"EventDestination",
+ "EventDestinationCollection",
"EventService",
"IPAddresses",
"JsonSchemaFile",
+ "JsonSchemaFileCollection",
"LogEntry",
+ "LogEntryCollection",
"LogService",
+ "LogServiceCollection",
"Manager",
"ManagerAccount",
+ "ManagerAccountCollection",
+ "ManagerCollection",
"ManagerDiagnosticData",
"ManagerNetworkProtocol",
"Memory",
+ "MemoryCollection",
"Message",
"MessageRegistry",
+ "MessageRegistryCollection",
"MessageRegistryFile",
+ "MessageRegistryFileCollection",
"MetricDefinition",
+ "MetricDefinitionCollection",
"MetricReport",
+ "MetricReportCollection",
"MetricReportDefinition",
+ "MetricReportDefinitionCollection",
+ "odata-v4",
"odata",
"OperatingConfig",
+ "OperatingConfigCollection",
"PCIeDevice",
+ "PCIeDeviceCollection",
"PCIeFunction",
+ "PCIeFunctionCollection",
"PCIeSlots",
"PhysicalContext",
"Power",
"Privileges",
"Processor",
+ "ProcessorCollection",
"redfish-error",
"redfish-payload-annotations",
+ "redfish-schema-v1",
"redfish-schema",
"Redundancy",
"Resource",
"Role",
+ "RoleCollection",
"Sensor",
+ "SensorCollection",
"ServiceRoot",
"Session",
+ "SessionCollection",
"SessionService",
"Settings",
"SoftwareInventory",
+ "SoftwareInventoryCollection",
"Storage",
+ "StorageCollection",
"StorageController",
+ "StorageControllerCollection",
"Task",
+ "TaskCollection",
"TaskService",
"TelemetryService",
"Thermal",
"ThermalSubsystem",
"Triggers",
+ "TriggersCollection",
"UpdateService",
"VirtualMedia",
+ "VirtualMediaCollection",
"VLanNetworkInterface",
+ "VLanNetworkInterfaceCollection",
};
}