For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

🔢Asset Type Validation

For tickets: MSD-9799, MSD-10154

Overview

Asset validation in Record Service is currently loosely enforced. During record creation and updates, the system allows clients to define and submit asset data with minimal type validation.

Assets are the first record section managed by Record Builder and are therefore treated as a legacy feature in terms of validation behavior.


Validation Behavior

  • Record Service does not strongly enforce asset field types

  • Clients are responsible for ensuring the correctness and shape of asset data

  • Asset fields are stored as-is, with limited server-side validation


Supported Asset Field Types

Any field declared in Record Builder under asset configuration may be one of the following types:

  • Integer

  • Boolean

  • String

  • Object


Object Type Rules

For fields defined as object:

  • The object must contain both of the following properties:

    • text

    • value

  • It may contain additional properties

Valid examples:

{ "text": "Title", "value": "title_123", "extra": "meta" }

Invalid example:

{ "extra": "meta", "text" : 'foo' }


Key Notes

  • Asset validation differs from other record sections (e.g. origination)

  • This behavior is maintained for backward compatibility and consistent API and Frontend behavior

Last updated