

The scope of the existing schemas is within the same API specification. The schema box is then filled with the existing schema you selected. Enter the name of the existing schema in the schema name box. To use an existing schema, click Input Schema.The schema editor page appears, with a blank schema box. To directly enter a complete JSON schema, click Input Schema.The schema editor page appears, with your sample data converted into a schema in the schema editor box. The data is validated as you type it, and a message in the lower left indicates if the sample data is valid.Īfter entering valid sample data, click Generate Schema. You can model your schema from sample JSON data, and API Modeler automatically generates a corresponding JSON schema object type.Įnter sample JSON data for your request in the Provide Sample Data box.There are three methods to add the request schema:.Selecting this does not affect the functionality of generating a JSON schema for the request body content. application/xml: the request content must be in XML format.application/json: the request content must be in JSON format.Select a request content type from the following options:.In the Description field, enter a description for the added parameter.This opens the Request Body Parameter page with the Provide Sample Data box visible. In the Request Body Parameter section, click + Body parameter.API Modeler provides functionality so that a JSON schema can be generated automatically from a sample data. You can define the JSON schema of the request body content. The message body is used to carry the entity body associated with the request.
