Description

Indicates the serialization version of the product definition JSON. This value lets the Topographic Production Service identify the schema of a product definition so it can validate and process the document correctly.

How it is used

The server reads version when a product definition is added or updated. If a future release of the service introduces schema changes, the version value lets the service apply the correct parser and migration rules.

Expected values

An integer identifying the serialization version. The current version is 0.

Behavior and relationships

  • version describes the serialization of the product definition itself, not the product's cartographic version. Per-product cartographic versions are configured through productVersions.
  • The value applies to the entire product definition; it does not vary between sections.

User considerations

  • Set version to 0 for product definitions authored against the current schema.
  • Do not change the value to migrate between schema revisions manually; reauthor the product definition or use the appropriate REST endpoint, addProduct or updateProduct.

Example

Use dark colors for code blocksCopy
1
2
3
4
5
{
  "version": 0,
  "name": "MTM25",
  "type": "MTM"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.