SK SKYVVA Documentation

47.4 How to generate (export) JSON Schema?

Introduction

JSON Schema is a detail for JSON based format for characterizing the structure of JSON information. In SKYVVA, we have a tool to generate JSON from Integration, Interface, and Message Type. This function is useful for users who want to generate JSON structure from their Integration Interface and Message type. We can generate JSON from both Interfaces Inbound and Outbound, and we will get the structures of fields with descriptions. So this tutorial will show about How to generate or export JSON Schema from Integration, Interface, and Message Type. [su_box title="Note" box_color="#2a8af0" title_color="#000000"] + In tool Generate Json Schema we need to know about this following:

[/su_box] Pre-Require

-AccountTest has four message type field entry such as Name, AccountNumber, BillingCity, and BillingCountry.

-Contact MessageType has two message type field entry such as FirstName and LastName.

1. How to generate JSON Schema from the Generic page?

Generate JSON schema on generic page “Generate Meta” custom link of Integration, and It allows users to select which Interfaces that users want to generate without leaving to find every Interface. For example, when we have 10 Interfaces, and we need to generate Json for 5 Interfaces, we can use this technique. Ingenerate JSON schema on Integration, there are two ways to generate, such as New way and Old way. In old ways, we get fields from System and description is ID Integration, but in a new way, we change the word from System to Integration and change from integration ID to Integration Name.

[su_box title="Note" box_color="#2a8af0" title_color="#000000"] As old way and the new ways just different 2 field. [/su_box]

-the description of the form system is the id of Integration -the description of the target object is the name of Interface

2. How to generate JSON Schema from Generate Metadata on Interface?

Generate JSON file from Generate Metadata on Interface is useful for a user who knows the exact Interface that he/she wants to generate.

3. How to generate JSON Schema from the message type of Repository?

Generate JSON Schema file from Export Metadata on message type of Repository is to allow users to choose the Message Type that the user wants to use. The Message Types that the user choosing will be takes the whole child message type.

Summary  Finally, we have learned how to generate the JSON Schema file on Integration, Interface, and Repository. There are individual benefits like we use on Integration that we can choose the Interfaces that we want to get structures to generate the JSON Schema file. We use​​​ to generate the JSON Schema file from the Interface when we have known the exact Interface, and We generate message types from the Repository when we want to get specific business message types.

Open this article in the interactive viewer →