Schema References in PlatformNx
Schema references (or definitions) allow you to modularize and reuse JSON schema components within and across integrations in PlatformNx.
For guidance on working with definitions, see Creating and Managing Definitions . For details on using definitions in schemas, see Working with Schema References.
Using References in the Mapper
While using references in the Mapper, you need to perform three tasks:
Set up the schema in the Mapper.
Map the schema references.
Deploy the mapped values.
Setting up Schemas in the Mapper
To set up a schema in the Mapper:
Navigate to the Output tab of the REST activity.
Click the Output field and, from the drop-down list that appears, select the schema that you want to use.
Confirm that the schema loads correctly.
Mapping Schema References
In the Mapper, select a schema with references.
You can see that referenced fields are automatically available.
Example:
input.address.city → target.address.city
Deploying Mapped Values
To deploy mapped values:
Save the mapping.
Publish and deploy.
Test using the sandbox/test environment.
Schema Reference Best Practices
Schema Draft Syntax
Draft 4–7:
#/definitions/<name>
Draft 2019–2020:
#/$defs/<name>
Recommendations
Modularize common schemas and reuse them across integrations.
Avoid deeply nested or cyclic references.
Use unique names across schemas to prevent mapping collisions.
Always test schemas and mappings before production deployment.
External Ref Considerations
Nested References
Partially supported in visual Mapper (external → external not guaranteed)
Variable Conflicts
Use unique naming to avoid conflicts during mapping
Network Availability
Ensure the URL is accessible at test and runtime
Versioning Strategy
Publish shared schemas with version control for traceability
Testing
Validate schema resolution via REST Client and Mapper before deployment
Last updated
Was this helpful?