cloudmersive-convert-api-client 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (199) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -4
  3. data/cloudmersive-convert-api-client.gemspec +1 -1
  4. data/docs/ValidateDocumentApi.md +165 -0
  5. data/lib/cloudmersive-convert-api-client.rb +1 -1
  6. data/lib/cloudmersive-convert-api-client/api/compare_document_api.rb +1 -1
  7. data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +1 -1
  8. data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +1 -1
  9. data/lib/cloudmersive-convert-api-client/api/convert_image_api.rb +1 -1
  10. data/lib/cloudmersive-convert-api-client/api/convert_template_api.rb +1 -1
  11. data/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +1 -1
  12. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +1 -1
  13. data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +1 -1
  14. data/lib/cloudmersive-convert-api-client/api/split_document_api.rb +1 -1
  15. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +169 -1
  16. data/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +1 -1
  17. data/lib/cloudmersive-convert-api-client/api_client.rb +1 -1
  18. data/lib/cloudmersive-convert-api-client/api_error.rb +1 -1
  19. data/lib/cloudmersive-convert-api-client/configuration.rb +1 -1
  20. data/lib/cloudmersive-convert-api-client/models/alternate_file_format_candidate.rb +1 -1
  21. data/lib/cloudmersive-convert-api-client/models/autodetect_get_info_result.rb +1 -1
  22. data/lib/cloudmersive-convert-api-client/models/autodetect_to_png_result.rb +1 -1
  23. data/lib/cloudmersive-convert-api-client/models/converted_png_page.rb +1 -1
  24. data/lib/cloudmersive-convert-api-client/models/document_validation_error.rb +1 -1
  25. data/lib/cloudmersive-convert-api-client/models/document_validation_result.rb +1 -1
  26. data/lib/cloudmersive-convert-api-client/models/docx_body.rb +1 -1
  27. data/lib/cloudmersive-convert-api-client/models/docx_cell_style.rb +1 -1
  28. data/lib/cloudmersive-convert-api-client/models/docx_footer.rb +1 -1
  29. data/lib/cloudmersive-convert-api-client/models/docx_header.rb +1 -1
  30. data/lib/cloudmersive-convert-api-client/models/docx_image.rb +1 -1
  31. data/lib/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +1 -1
  32. data/lib/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +1 -1
  33. data/lib/cloudmersive-convert-api-client/models/docx_paragraph.rb +1 -1
  34. data/lib/cloudmersive-convert-api-client/models/docx_remove_object_request.rb +1 -1
  35. data/lib/cloudmersive-convert-api-client/models/docx_remove_object_response.rb +1 -1
  36. data/lib/cloudmersive-convert-api-client/models/docx_run.rb +1 -1
  37. data/lib/cloudmersive-convert-api-client/models/docx_section.rb +1 -1
  38. data/lib/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +1 -1
  39. data/lib/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +1 -1
  40. data/lib/cloudmersive-convert-api-client/models/docx_set_header_request.rb +1 -1
  41. data/lib/cloudmersive-convert-api-client/models/docx_set_header_response.rb +1 -1
  42. data/lib/cloudmersive-convert-api-client/models/docx_style.rb +1 -1
  43. data/lib/cloudmersive-convert-api-client/models/docx_table.rb +1 -1
  44. data/lib/cloudmersive-convert-api-client/models/docx_table_cell.rb +1 -1
  45. data/lib/cloudmersive-convert-api-client/models/docx_table_row.rb +1 -1
  46. data/lib/cloudmersive-convert-api-client/models/docx_template_application_request.rb +1 -1
  47. data/lib/cloudmersive-convert-api-client/models/docx_template_operation.rb +1 -1
  48. data/lib/cloudmersive-convert-api-client/models/docx_text.rb +1 -1
  49. data/lib/cloudmersive-convert-api-client/models/exif_value.rb +1 -1
  50. data/lib/cloudmersive-convert-api-client/models/finish_editing_request.rb +1 -1
  51. data/lib/cloudmersive-convert-api-client/models/get_docx_body_request.rb +1 -1
  52. data/lib/cloudmersive-convert-api-client/models/get_docx_body_response.rb +1 -1
  53. data/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +1 -1
  54. data/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +1 -1
  55. data/lib/cloudmersive-convert-api-client/models/get_docx_images_request.rb +1 -1
  56. data/lib/cloudmersive-convert-api-client/models/get_docx_images_response.rb +1 -1
  57. data/lib/cloudmersive-convert-api-client/models/get_docx_sections_request.rb +1 -1
  58. data/lib/cloudmersive-convert-api-client/models/get_docx_sections_response.rb +1 -1
  59. data/lib/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +1 -1
  60. data/lib/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +1 -1
  61. data/lib/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +1 -1
  62. data/lib/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +1 -1
  63. data/lib/cloudmersive-convert-api-client/models/get_image_info_result.rb +1 -1
  64. data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_request.rb +1 -1
  65. data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_response.rb +1 -1
  66. data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_request.rb +1 -1
  67. data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_response.rb +1 -1
  68. data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_request.rb +1 -1
  69. data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_response.rb +1 -1
  70. data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_request.rb +1 -1
  71. data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_response.rb +1 -1
  72. data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_request.rb +1 -1
  73. data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_response.rb +1 -1
  74. data/lib/cloudmersive-convert-api-client/models/html_md_result.rb +1 -1
  75. data/lib/cloudmersive-convert-api-client/models/html_template_application_request.rb +1 -1
  76. data/lib/cloudmersive-convert-api-client/models/html_template_application_response.rb +1 -1
  77. data/lib/cloudmersive-convert-api-client/models/html_template_operation.rb +1 -1
  78. data/lib/cloudmersive-convert-api-client/models/html_to_office_request.rb +1 -1
  79. data/lib/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +1 -1
  80. data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_request.rb +1 -1
  81. data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_response.rb +1 -1
  82. data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +1 -1
  83. data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +1 -1
  84. data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_request.rb +1 -1
  85. data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_response.rb +1 -1
  86. data/lib/cloudmersive-convert-api-client/models/multipage_image_format_conversion_result.rb +1 -1
  87. data/lib/cloudmersive-convert-api-client/models/page_conversion_result.rb +1 -1
  88. data/lib/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +1 -1
  89. data/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +1 -1
  90. data/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +1 -1
  91. data/lib/cloudmersive-convert-api-client/models/replace_string_request.rb +1 -1
  92. data/lib/cloudmersive-convert-api-client/models/screenshot_request.rb +1 -1
  93. data/lib/cloudmersive-convert-api-client/models/split_xlsx_worksheet_result.rb +1 -1
  94. data/lib/cloudmersive-convert-api-client/models/text_conversion_result.rb +1 -1
  95. data/lib/cloudmersive-convert-api-client/models/viewer_response.rb +1 -1
  96. data/lib/cloudmersive-convert-api-client/models/worksheet_result.rb +1 -1
  97. data/lib/cloudmersive-convert-api-client/models/xlsx_image.rb +1 -1
  98. data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_cell.rb +1 -1
  99. data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_column.rb +1 -1
  100. data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_row.rb +1 -1
  101. data/lib/cloudmersive-convert-api-client/models/xlsx_worksheet.rb +1 -1
  102. data/lib/cloudmersive-convert-api-client/version.rb +2 -2
  103. data/spec/api/compare_document_api_spec.rb +1 -1
  104. data/spec/api/convert_data_api_spec.rb +1 -1
  105. data/spec/api/convert_document_api_spec.rb +1 -1
  106. data/spec/api/convert_image_api_spec.rb +1 -1
  107. data/spec/api/convert_template_api_spec.rb +1 -1
  108. data/spec/api/convert_web_api_spec.rb +1 -1
  109. data/spec/api/edit_document_api_spec.rb +1 -1
  110. data/spec/api/merge_document_api_spec.rb +1 -1
  111. data/spec/api/split_document_api_spec.rb +1 -1
  112. data/spec/api/validate_document_api_spec.rb +37 -1
  113. data/spec/api/viewer_tools_api_spec.rb +1 -1
  114. data/spec/api_client_spec.rb +1 -1
  115. data/spec/configuration_spec.rb +1 -1
  116. data/spec/models/alternate_file_format_candidate_spec.rb +1 -1
  117. data/spec/models/autodetect_get_info_result_spec.rb +1 -1
  118. data/spec/models/autodetect_to_png_result_spec.rb +1 -1
  119. data/spec/models/converted_png_page_spec.rb +1 -1
  120. data/spec/models/document_validation_error_spec.rb +1 -1
  121. data/spec/models/document_validation_result_spec.rb +1 -1
  122. data/spec/models/docx_body_spec.rb +1 -1
  123. data/spec/models/docx_cell_style_spec.rb +1 -1
  124. data/spec/models/docx_footer_spec.rb +1 -1
  125. data/spec/models/docx_header_spec.rb +1 -1
  126. data/spec/models/docx_image_spec.rb +1 -1
  127. data/spec/models/docx_insert_image_request_spec.rb +1 -1
  128. data/spec/models/docx_insert_image_response_spec.rb +1 -1
  129. data/spec/models/docx_paragraph_spec.rb +1 -1
  130. data/spec/models/docx_remove_object_request_spec.rb +1 -1
  131. data/spec/models/docx_remove_object_response_spec.rb +1 -1
  132. data/spec/models/docx_run_spec.rb +1 -1
  133. data/spec/models/docx_section_spec.rb +1 -1
  134. data/spec/models/docx_set_footer_request_spec.rb +1 -1
  135. data/spec/models/docx_set_footer_response_spec.rb +1 -1
  136. data/spec/models/docx_set_header_request_spec.rb +1 -1
  137. data/spec/models/docx_set_header_response_spec.rb +1 -1
  138. data/spec/models/docx_style_spec.rb +1 -1
  139. data/spec/models/docx_table_cell_spec.rb +1 -1
  140. data/spec/models/docx_table_row_spec.rb +1 -1
  141. data/spec/models/docx_table_spec.rb +1 -1
  142. data/spec/models/docx_template_application_request_spec.rb +1 -1
  143. data/spec/models/docx_template_operation_spec.rb +1 -1
  144. data/spec/models/docx_text_spec.rb +1 -1
  145. data/spec/models/exif_value_spec.rb +1 -1
  146. data/spec/models/finish_editing_request_spec.rb +1 -1
  147. data/spec/models/get_docx_body_request_spec.rb +1 -1
  148. data/spec/models/get_docx_body_response_spec.rb +1 -1
  149. data/spec/models/get_docx_headers_and_footers_request_spec.rb +1 -1
  150. data/spec/models/get_docx_headers_and_footers_response_spec.rb +1 -1
  151. data/spec/models/get_docx_images_request_spec.rb +1 -1
  152. data/spec/models/get_docx_images_response_spec.rb +1 -1
  153. data/spec/models/get_docx_sections_request_spec.rb +1 -1
  154. data/spec/models/get_docx_sections_response_spec.rb +1 -1
  155. data/spec/models/get_docx_styles_request_spec.rb +1 -1
  156. data/spec/models/get_docx_styles_response_spec.rb +1 -1
  157. data/spec/models/get_docx_tables_request_spec.rb +1 -1
  158. data/spec/models/get_docx_tables_response_spec.rb +1 -1
  159. data/spec/models/get_image_info_result_spec.rb +1 -1
  160. data/spec/models/get_xlsx_columns_request_spec.rb +1 -1
  161. data/spec/models/get_xlsx_columns_response_spec.rb +1 -1
  162. data/spec/models/get_xlsx_images_request_spec.rb +1 -1
  163. data/spec/models/get_xlsx_images_response_spec.rb +1 -1
  164. data/spec/models/get_xlsx_rows_and_cells_request_spec.rb +1 -1
  165. data/spec/models/get_xlsx_rows_and_cells_response_spec.rb +1 -1
  166. data/spec/models/get_xlsx_styles_request_spec.rb +1 -1
  167. data/spec/models/get_xlsx_styles_response_spec.rb +1 -1
  168. data/spec/models/get_xlsx_worksheets_request_spec.rb +1 -1
  169. data/spec/models/get_xlsx_worksheets_response_spec.rb +1 -1
  170. data/spec/models/html_md_result_spec.rb +1 -1
  171. data/spec/models/html_template_application_request_spec.rb +1 -1
  172. data/spec/models/html_template_application_response_spec.rb +1 -1
  173. data/spec/models/html_template_operation_spec.rb +1 -1
  174. data/spec/models/html_to_office_request_spec.rb +1 -1
  175. data/spec/models/html_to_pdf_request_spec.rb +1 -1
  176. data/spec/models/insert_docx_insert_paragraph_request_spec.rb +1 -1
  177. data/spec/models/insert_docx_insert_paragraph_response_spec.rb +1 -1
  178. data/spec/models/insert_docx_tables_request_spec.rb +1 -1
  179. data/spec/models/insert_docx_tables_response_spec.rb +1 -1
  180. data/spec/models/insert_xlsx_worksheet_request_spec.rb +1 -1
  181. data/spec/models/insert_xlsx_worksheet_response_spec.rb +1 -1
  182. data/spec/models/multipage_image_format_conversion_result_spec.rb +1 -1
  183. data/spec/models/page_conversion_result_spec.rb +1 -1
  184. data/spec/models/pdf_to_png_result_spec.rb +1 -1
  185. data/spec/models/remove_docx_headers_and_footers_request_spec.rb +1 -1
  186. data/spec/models/remove_docx_headers_and_footers_response_spec.rb +1 -1
  187. data/spec/models/replace_string_request_spec.rb +1 -1
  188. data/spec/models/screenshot_request_spec.rb +1 -1
  189. data/spec/models/split_xlsx_worksheet_result_spec.rb +1 -1
  190. data/spec/models/text_conversion_result_spec.rb +1 -1
  191. data/spec/models/viewer_response_spec.rb +1 -1
  192. data/spec/models/worksheet_result_spec.rb +1 -1
  193. data/spec/models/xlsx_image_spec.rb +1 -1
  194. data/spec/models/xlsx_spreadsheet_cell_spec.rb +1 -1
  195. data/spec/models/xlsx_spreadsheet_column_spec.rb +1 -1
  196. data/spec/models/xlsx_spreadsheet_row_spec.rb +1 -1
  197. data/spec/models/xlsx_worksheet_spec.rb +1 -1
  198. data/spec/spec_helper.rb +1 -1
  199. metadata +15 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d324bff7f1c50055f485369755d325a49436277ec2faa4183bd6a702260164dc
4
- data.tar.gz: 7a33b9aa43f4838204a0ba6a883d0919a2b6a2cb112fcdfeb682e15807340018
3
+ metadata.gz: fd3f277d4e957b545fd35ff4e1347a7f16d45eddea6112fa93fd36e225ea21c1
4
+ data.tar.gz: 2943385dc3b65f57a306df5af244f959dc4b01322c278980286305a63a94f48a
5
5
  SHA512:
6
- metadata.gz: 0c866de9095a506451d3b426370d7f424908a85f16c82d31492eed6b6c4c35ed94af1646cdd9ef1210bc5d23dde4f79085fb3738e139817b7de4b9440eccbb37
7
- data.tar.gz: b1939639e7b04029348e1cc971bdcc5903b99dfd1442d571d8f047ffde79907916d107dfeb4d71b18d55335f20481577eb67c144fa5a7b7230090f71d1c88a96
6
+ metadata.gz: d0b3a50aee4554670497acf06254259a052c24637d4f8f7a6c6506bb2ca859d5ec0abd55bfbfdce5b975097ddb53840f773780b21b4bc0309b858a57a6125ea1
7
+ data.tar.gz: d4b4e9d09bc2eb644a66d61e3cf503d4b430d5f5d1391a18ce65469b0c9e11989f728faad20032c49871d8bc66c65ab70fbed19da42d89b5302b9209db20538e
data/README.md CHANGED
@@ -7,7 +7,7 @@ Convert API lets you effortlessly convert file formats and types.
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 1.4.1
10
+ - Package version: 1.4.2
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build cloudmersive-convert-api-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./cloudmersive-convert-api-client-1.4.1.gem
26
+ gem install ./cloudmersive-convert-api-client-1.4.2.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-convert-api-client-1.4.1.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-convert-api-client-1.4.2.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'cloudmersive-convert-api-client', '~> 1.4.1'
34
+ gem 'cloudmersive-convert-api-client', '~> 1.4.2'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -155,8 +155,11 @@ Class | Method | HTTP request | Description
155
155
  *CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_xlsx**](docs/MergeDocumentApi.md#merge_document_xlsx) | **POST** /convert/merge/xlsx | Merge Multple Excel XLSX Together
156
156
  *CloudmersiveConvertApiClient::SplitDocumentApi* | [**split_document_xlsx**](docs/SplitDocumentApi.md#split_document_xlsx) | **POST** /convert/split/xlsx | Split a single Excel XLSX into Separate Worksheets
157
157
  *CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_docx_validation**](docs/ValidateDocumentApi.md#validate_document_docx_validation) | **POST** /convert/validate/docx | Validate a Word document (DOCX)
158
+ *CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_json_validation**](docs/ValidateDocumentApi.md#validate_document_json_validation) | **POST** /convert/validate/json | Validate a JSON file
159
+ *CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_pdf_validation**](docs/ValidateDocumentApi.md#validate_document_pdf_validation) | **POST** /convert/validate/pdf | Validate a PDF document file
158
160
  *CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_pptx_validation**](docs/ValidateDocumentApi.md#validate_document_pptx_validation) | **POST** /convert/validate/pptx | Validate a PowerPoint presentation (PPTX)
159
161
  *CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_xlsx_validation**](docs/ValidateDocumentApi.md#validate_document_xlsx_validation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX)
162
+ *CloudmersiveConvertApiClient::ValidateDocumentApi* | [**validate_document_xml_validation**](docs/ValidateDocumentApi.md#validate_document_xml_validation) | **POST** /convert/validate/xml | Validate an XML file
160
163
  *CloudmersiveConvertApiClient::ViewerToolsApi* | [**viewer_tools_create_simple**](docs/ViewerToolsApi.md#viewer_tools_create_simple) | **POST** /convert/viewer/create/web/simple | Create a web-based viewer
161
164
 
162
165
 
@@ -8,7 +8,7 @@
8
8
  OpenAPI spec version: v1
9
9
 
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- Swagger Codegen version: unset
11
+ Swagger Codegen version: 2.3.1
12
12
 
13
13
  =end
14
14
 
@@ -5,8 +5,11 @@ All URIs are relative to *https://api.cloudmersive.com*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**validate_document_docx_validation**](ValidateDocumentApi.md#validate_document_docx_validation) | **POST** /convert/validate/docx | Validate a Word document (DOCX)
8
+ [**validate_document_json_validation**](ValidateDocumentApi.md#validate_document_json_validation) | **POST** /convert/validate/json | Validate a JSON file
9
+ [**validate_document_pdf_validation**](ValidateDocumentApi.md#validate_document_pdf_validation) | **POST** /convert/validate/pdf | Validate a PDF document file
8
10
  [**validate_document_pptx_validation**](ValidateDocumentApi.md#validate_document_pptx_validation) | **POST** /convert/validate/pptx | Validate a PowerPoint presentation (PPTX)
9
11
  [**validate_document_xlsx_validation**](ValidateDocumentApi.md#validate_document_xlsx_validation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX)
12
+ [**validate_document_xml_validation**](ValidateDocumentApi.md#validate_document_xml_validation) | **POST** /convert/validate/xml | Validate an XML file
10
13
 
11
14
 
12
15
  # **validate_document_docx_validation**
@@ -63,6 +66,114 @@ Name | Type | Description | Notes
63
66
 
64
67
 
65
68
 
69
+ # **validate_document_json_validation**
70
+ > DocumentValidationResult validate_document_json_validation(input_file)
71
+
72
+ Validate a JSON file
73
+
74
+ Validate a JSON (JavaScript Object Notation) document file; if the document is not valid, identifies the errors in the document
75
+
76
+ ### Example
77
+ ```ruby
78
+ # load the gem
79
+ require 'cloudmersive-convert-api-client'
80
+ # setup authorization
81
+ CloudmersiveConvertApiClient.configure do |config|
82
+ # Configure API key authorization: Apikey
83
+ config.api_key['Apikey'] = 'YOUR API KEY'
84
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
85
+ #config.api_key_prefix['Apikey'] = 'Bearer'
86
+ end
87
+
88
+ api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
89
+
90
+ input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
91
+
92
+
93
+ begin
94
+ #Validate a JSON file
95
+ result = api_instance.validate_document_json_validation(input_file)
96
+ p result
97
+ rescue CloudmersiveConvertApiClient::ApiError => e
98
+ puts "Exception when calling ValidateDocumentApi->validate_document_json_validation: #{e}"
99
+ end
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **input_file** | **File**| Input file to perform the operation on. |
107
+
108
+ ### Return type
109
+
110
+ [**DocumentValidationResult**](DocumentValidationResult.md)
111
+
112
+ ### Authorization
113
+
114
+ [Apikey](../README.md#Apikey)
115
+
116
+ ### HTTP request headers
117
+
118
+ - **Content-Type**: multipart/form-data
119
+ - **Accept**: application/octet-stream
120
+
121
+
122
+
123
+ # **validate_document_pdf_validation**
124
+ > DocumentValidationResult validate_document_pdf_validation(input_file)
125
+
126
+ Validate a PDF document file
127
+
128
+ Validate a PDF document; if the document is not valid, identifies the errors in the document
129
+
130
+ ### Example
131
+ ```ruby
132
+ # load the gem
133
+ require 'cloudmersive-convert-api-client'
134
+ # setup authorization
135
+ CloudmersiveConvertApiClient.configure do |config|
136
+ # Configure API key authorization: Apikey
137
+ config.api_key['Apikey'] = 'YOUR API KEY'
138
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
139
+ #config.api_key_prefix['Apikey'] = 'Bearer'
140
+ end
141
+
142
+ api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
143
+
144
+ input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
145
+
146
+
147
+ begin
148
+ #Validate a PDF document file
149
+ result = api_instance.validate_document_pdf_validation(input_file)
150
+ p result
151
+ rescue CloudmersiveConvertApiClient::ApiError => e
152
+ puts "Exception when calling ValidateDocumentApi->validate_document_pdf_validation: #{e}"
153
+ end
154
+ ```
155
+
156
+ ### Parameters
157
+
158
+ Name | Type | Description | Notes
159
+ ------------- | ------------- | ------------- | -------------
160
+ **input_file** | **File**| Input file to perform the operation on. |
161
+
162
+ ### Return type
163
+
164
+ [**DocumentValidationResult**](DocumentValidationResult.md)
165
+
166
+ ### Authorization
167
+
168
+ [Apikey](../README.md#Apikey)
169
+
170
+ ### HTTP request headers
171
+
172
+ - **Content-Type**: multipart/form-data
173
+ - **Accept**: application/octet-stream
174
+
175
+
176
+
66
177
  # **validate_document_pptx_validation**
67
178
  > DocumentValidationResult validate_document_pptx_validation(input_file)
68
179
 
@@ -171,3 +282,57 @@ Name | Type | Description | Notes
171
282
 
172
283
 
173
284
 
285
+ # **validate_document_xml_validation**
286
+ > DocumentValidationResult validate_document_xml_validation(input_file)
287
+
288
+ Validate an XML file
289
+
290
+ Validate an XML document file; if the document is not valid, identifies the errors in the document
291
+
292
+ ### Example
293
+ ```ruby
294
+ # load the gem
295
+ require 'cloudmersive-convert-api-client'
296
+ # setup authorization
297
+ CloudmersiveConvertApiClient.configure do |config|
298
+ # Configure API key authorization: Apikey
299
+ config.api_key['Apikey'] = 'YOUR API KEY'
300
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
301
+ #config.api_key_prefix['Apikey'] = 'Bearer'
302
+ end
303
+
304
+ api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
305
+
306
+ input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
307
+
308
+
309
+ begin
310
+ #Validate an XML file
311
+ result = api_instance.validate_document_xml_validation(input_file)
312
+ p result
313
+ rescue CloudmersiveConvertApiClient::ApiError => e
314
+ puts "Exception when calling ValidateDocumentApi->validate_document_xml_validation: #{e}"
315
+ end
316
+ ```
317
+
318
+ ### Parameters
319
+
320
+ Name | Type | Description | Notes
321
+ ------------- | ------------- | ------------- | -------------
322
+ **input_file** | **File**| Input file to perform the operation on. |
323
+
324
+ ### Return type
325
+
326
+ [**DocumentValidationResult**](DocumentValidationResult.md)
327
+
328
+ ### Authorization
329
+
330
+ [Apikey](../README.md#Apikey)
331
+
332
+ ### HTTP request headers
333
+
334
+ - **Content-Type**: multipart/form-data
335
+ - **Accept**: application/octet-stream
336
+
337
+
338
+
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -76,6 +76,118 @@ module CloudmersiveConvertApiClient
76
76
  return data, status_code, headers
77
77
  end
78
78
 
79
+ # Validate a JSON file
80
+ # Validate a JSON (JavaScript Object Notation) document file; if the document is not valid, identifies the errors in the document
81
+ # @param input_file Input file to perform the operation on.
82
+ # @param [Hash] opts the optional parameters
83
+ # @return [DocumentValidationResult]
84
+ def validate_document_json_validation(input_file, opts = {})
85
+ data, _status_code, _headers = validate_document_json_validation_with_http_info(input_file, opts)
86
+ return data
87
+ end
88
+
89
+ # Validate a JSON file
90
+ # Validate a JSON (JavaScript Object Notation) document file; if the document is not valid, identifies the errors in the document
91
+ # @param input_file Input file to perform the operation on.
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
94
+ def validate_document_json_validation_with_http_info(input_file, opts = {})
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug "Calling API: ValidateDocumentApi.validate_document_json_validation ..."
97
+ end
98
+ # verify the required parameter 'input_file' is set
99
+ if @api_client.config.client_side_validation && input_file.nil?
100
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_json_validation"
101
+ end
102
+ # resource path
103
+ local_var_path = "/convert/validate/json"
104
+
105
+ # query parameters
106
+ query_params = {}
107
+
108
+ # header parameters
109
+ header_params = {}
110
+ # HTTP header 'Accept' (if needed)
111
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
112
+ # HTTP header 'Content-Type'
113
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
114
+
115
+ # form parameters
116
+ form_params = {}
117
+ form_params["inputFile"] = input_file
118
+
119
+ # http body (model)
120
+ post_body = nil
121
+ auth_names = ['Apikey']
122
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
123
+ :header_params => header_params,
124
+ :query_params => query_params,
125
+ :form_params => form_params,
126
+ :body => post_body,
127
+ :auth_names => auth_names,
128
+ :return_type => 'DocumentValidationResult')
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_json_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
131
+ end
132
+ return data, status_code, headers
133
+ end
134
+
135
+ # Validate a PDF document file
136
+ # Validate a PDF document; if the document is not valid, identifies the errors in the document
137
+ # @param input_file Input file to perform the operation on.
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [DocumentValidationResult]
140
+ def validate_document_pdf_validation(input_file, opts = {})
141
+ data, _status_code, _headers = validate_document_pdf_validation_with_http_info(input_file, opts)
142
+ return data
143
+ end
144
+
145
+ # Validate a PDF document file
146
+ # Validate a PDF document; if the document is not valid, identifies the errors in the document
147
+ # @param input_file Input file to perform the operation on.
148
+ # @param [Hash] opts the optional parameters
149
+ # @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
150
+ def validate_document_pdf_validation_with_http_info(input_file, opts = {})
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug "Calling API: ValidateDocumentApi.validate_document_pdf_validation ..."
153
+ end
154
+ # verify the required parameter 'input_file' is set
155
+ if @api_client.config.client_side_validation && input_file.nil?
156
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_pdf_validation"
157
+ end
158
+ # resource path
159
+ local_var_path = "/convert/validate/pdf"
160
+
161
+ # query parameters
162
+ query_params = {}
163
+
164
+ # header parameters
165
+ header_params = {}
166
+ # HTTP header 'Accept' (if needed)
167
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
168
+ # HTTP header 'Content-Type'
169
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
170
+
171
+ # form parameters
172
+ form_params = {}
173
+ form_params["inputFile"] = input_file
174
+
175
+ # http body (model)
176
+ post_body = nil
177
+ auth_names = ['Apikey']
178
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
179
+ :header_params => header_params,
180
+ :query_params => query_params,
181
+ :form_params => form_params,
182
+ :body => post_body,
183
+ :auth_names => auth_names,
184
+ :return_type => 'DocumentValidationResult')
185
+ if @api_client.config.debugging
186
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_pdf_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
187
+ end
188
+ return data, status_code, headers
189
+ end
190
+
79
191
  # Validate a PowerPoint presentation (PPTX)
80
192
  # Validate a PowerPoint presentation (PPTX); if the document is not valid, identifies the errors in the document
81
193
  # @param input_file Input file to perform the operation on.
@@ -187,5 +299,61 @@ module CloudmersiveConvertApiClient
187
299
  end
188
300
  return data, status_code, headers
189
301
  end
302
+
303
+ # Validate an XML file
304
+ # Validate an XML document file; if the document is not valid, identifies the errors in the document
305
+ # @param input_file Input file to perform the operation on.
306
+ # @param [Hash] opts the optional parameters
307
+ # @return [DocumentValidationResult]
308
+ def validate_document_xml_validation(input_file, opts = {})
309
+ data, _status_code, _headers = validate_document_xml_validation_with_http_info(input_file, opts)
310
+ return data
311
+ end
312
+
313
+ # Validate an XML file
314
+ # Validate an XML document file; if the document is not valid, identifies the errors in the document
315
+ # @param input_file Input file to perform the operation on.
316
+ # @param [Hash] opts the optional parameters
317
+ # @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
318
+ def validate_document_xml_validation_with_http_info(input_file, opts = {})
319
+ if @api_client.config.debugging
320
+ @api_client.config.logger.debug "Calling API: ValidateDocumentApi.validate_document_xml_validation ..."
321
+ end
322
+ # verify the required parameter 'input_file' is set
323
+ if @api_client.config.client_side_validation && input_file.nil?
324
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_xml_validation"
325
+ end
326
+ # resource path
327
+ local_var_path = "/convert/validate/xml"
328
+
329
+ # query parameters
330
+ query_params = {}
331
+
332
+ # header parameters
333
+ header_params = {}
334
+ # HTTP header 'Accept' (if needed)
335
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
336
+ # HTTP header 'Content-Type'
337
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
338
+
339
+ # form parameters
340
+ form_params = {}
341
+ form_params["inputFile"] = input_file
342
+
343
+ # http body (model)
344
+ post_body = nil
345
+ auth_names = ['Apikey']
346
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
347
+ :header_params => header_params,
348
+ :query_params => query_params,
349
+ :form_params => form_params,
350
+ :body => post_body,
351
+ :auth_names => auth_names,
352
+ :return_type => 'DocumentValidationResult')
353
+ if @api_client.config.debugging
354
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_xml_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
355
+ end
356
+ return data, status_code, headers
357
+ end
190
358
  end
191
359
  end