Custom objects of type JSON
Custom objects of type JSON are defined by name and a JSON schema file.
To create an object of type JSON, prepare this folder structure for the import:
FOLDER: JSON
+-- FOLDER: <object name>
+---- FILE: <object name>.schema.json
+---- FILE: <object name>.properties.json
To import a .zip file that contains one or more definitions for objects of type JSON, use the Object Schemas page in Data Fabric.
These validations are performed when importing:
- Object names must be unique and must comply to the object naming conventions.
- If an object with an identical name is already registered with another type, the import fails.
- If an object with an identical name is already registered with the JSON type, the imported schema overwrites the existing schema.
- The <object name>.schema.json schema file is validated in this way:
- Only one JSON schema file can be used for a given object name.
- The schema file must be a valid JSON according to the JSON schema definition, version draft-06.
- The schema file must use UTF-8 encoding.
- The
anyOf
keyword is not allowed. - The
oneOf
keyword is supported only to describe a type that can be null.
The <object name>.properties.json file is optional and can contain additional metadata properties for an object.
For information on how to define the <object name>.properties.json file, see Defining additional object metadata properties and Additional properties file.