Import a JSON Schema
To quickly create a custom data type, import a JSON sample or schema into your decision model.
Note:
There are certain constraints associated with importing JSON schema files. See JSON Schema Import Restrictions.To import a JSON sample or schema containing a custom data type:
- In the decision designer, click Types
on the sidebar.
- In the Types panel, click Import type
.
- From the drop-down menu, select one of the following options:
- Import from sample: Select to import a JSON sample.
- Import from schema: Select to import a JSON schema.
- If you select Import from sample, perform these actions in the Create new type panel.
- Enter a unique name for the type definition.
- In the Sample section, enter a JSON sample containing the data type. Click Next.
- Review the generated schema, and click Create.
- If you select Import from schema, perform these actions in the Create new type panel.
- Enter a unique name for the type definition.
- In the Schema section, enter a valid JSON schema containing the data type. Click Create.
The new data type is now displayed in the Types panel, with options to edit or delete it.
JSON Schema Import Restrictions
Review these restrictions before importing a JSON schema to create custom data types in your decision model.
- The size of the JSON schema to import cannot exceed 200 KB.
- The JSON schema cannot have fields that exceed 20 levels of nesting.
- The field names in the JSON schema must meet these criteria:
- Start with a letter, underscore, or colon.
- Contain only letters, digits, underscores, hyphens, or periods.
- Oracle Integration supports the creation of data types exclusively from the following keywords in a JSON schema:
- type
- format
- items
- enum
- definitions
- properties
- $ref
Keywords not in the list won't work, for example, anyOf, allOf, oneOf, pattern, required, minLength, maxLength, and regex.