metadata.mojom 859 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. module schema_org.mojom;
  5. // Due to the restriction of AppIndexing, all elements should be of the
  6. // same type. Non-array values are converted to arrays of one element.
  7. union Values {
  8. array<bool> bool_values;
  9. array<int64> long_values;
  10. array<string> string_values;
  11. array<Entity> entity_values;
  12. };
  13. // Key-value pair for the attributes of an |Entity|.
  14. struct Property {
  15. string name;
  16. Values values;
  17. };
  18. // Top-level metadata entry using schema.org vocabulary.
  19. // Tree structure of entities is possible.
  20. // Ref: https://developers.google.com/schemas/formats/json-ld
  21. struct Entity {
  22. string type; // Correspond to the "@type" key, defined in JSON-LD.
  23. array<Property> properties;
  24. };