Swagger-JSON-Schema-In-YAML This python script generates JSON schema in YAML format that is used in application like Swagger. You must have file data.json that contains json structured string in project directory. Run the file you will get output as well as file called out.yaml containing json schema there.