eBay · Schema

TypedNameValue

The type that defines the fields for the name/value pairs for item aspects.

AuctionsCommerceProductsMarketplaceFortune 500

Properties

Name Type Description
name string The text representing the name of the aspect for the name/value pair, such as Color.
type string This indicates if the value being returned is a string or an array of values.

Valid Values:
  • STRING - Indicates the value returned is a string.
  • STRING_ARRA
value string The value of the aspect for the name/value pair, such as Red.
View JSON Schema on GitHub

JSON Schema

ebay-typednamevalue-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TypedNameValue",
  "title": "TypedNameValue",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The text representing the name of the aspect for the name/value pair, such as Color."
    },
    "type": {
      "type": "string",
      "description": "This indicates if the value being returned is a string or an array of values. <br><br><b> Valid Values: </b> <ul><li><b> STRING</b> - Indicates the value returned is a string.</li>  <li><b> STRING_ARRAY</b> - Indicates the value returned is an array of strings.</li></ul>  Code so that your app gracefully handles any future changes to this list. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/browse/types/gct:ValueTypeEnum'>eBay API documentation</a>"
    },
    "value": {
      "type": "string",
      "description": "The value of the aspect for the name/value pair, such as Red."
    }
  },
  "description": "The type that defines the fields for the name/value pairs for item aspects."
}