내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

how to generate swagger definition file using json/json schema

Avatar

Level 2

Hi,

Do we have any procedure to convert simple json file example in to swagger definition file ,if so could any one suggest the way

Example :simple json

{

  "Level1": [

    {

      "level2": "AB",

      "level3": {

        "ABS1": [ABSC1","ABSC2" ],

        "ABS2": ["ABS2C1" ]     }

    },

    {

      "level2": "AD",

      "level3": {"ADS1": ["ADSC1",  "ADSC2"],

        "ADS2": [ "ADS2C1","ADS2C2","ADS2C3" ]}

    }

  ]

}

Thanks in advance,

Jhansi.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee Advisor

The Best APIs are Built with Swagger Tools | Swagger

Once you have your swagger file, you can then create datasource in AEM Forms

Adobe Experience Manager Help | Creating DataSource Configuration in AEM Forms

BTW Swagger files describe REST API that want to invoke from AEM Forms. Swagger files are like WSDL files which are for SOAP protocol

원본 게시물의 솔루션 보기

6 답변 개

Avatar

Employee Advisor

Swagger file is in json format

what are you trying to accomplish?

Avatar

Employee Advisor

Convert the JSON to JSON schema which can be ported to YAML thereafter.

Avatar

Level 2

Hi Mayank Gandhi,

Thanks for the response, i have converted the sample JSON to JSON schema and to YAML, i believe its needed to convert this YAML file to swagger definition file  so that i can create data source to use the sample json , any insights post conversion of json to YAML and how to make swagger from YAML would be great.

Thanks in advance,

Jhansi

Avatar

Employee Advisor

you can use YAML file to create datasource

Avatar

Level 2

Thanks for the prompt response , do we have any documentation on how to use YAML file to create a datasource, if documentation is not available  any insights  of this scenario would be great.

Avatar

정확한 답변 작성자:
Employee Advisor

The Best APIs are Built with Swagger Tools | Swagger

Once you have your swagger file, you can then create datasource in AEM Forms

Adobe Experience Manager Help | Creating DataSource Configuration in AEM Forms

BTW Swagger files describe REST API that want to invoke from AEM Forms. Swagger files are like WSDL files which are for SOAP protocol