/* Check and see if this is supported schema or not. */
BOOLEAN CheckSupportedSchema(IN REDFISH_PLATFORM_CONFIG_SCHEMA *SupportedSchema, IN CHAR8 *Schema)
/* Check and see if this is supported schema or not. */
BOOLEAN CheckSupportedSchema(IN REDFISH_PLATFORM_CONFIG_SCHEMA *SupportedSchema, IN CHAR8 *Schema)
{
  UINTN  Index;
  if ((SupportedSchema == NULL) || IS_EMPTY_STRING (Schema)) {
    return FALSE;
  }
  if (SupportedSchema->Count == 0) {
    return FALSE;
  }
  for (Index = 0; Index < SupportedSchema->Count; Index++) {
    if (AsciiStrCmp (SupportedSchema->SchemaList[Index], Schema) == 0) {
      return TRUE;
    }
  }
  return FALSE;
}