-
-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add object titles def to improve SDK generation (#10902)
<!-- IMPORTANT CHECKLIST Make sure you've done all the following (You can delete the checklist before submitting) - [X] PR title is prefixed by one of the following: feat, fix, docs, style, refactor, test, build, ci, chore, revert, l10n, taxonomy - [ ] Code is well documented - [ ] Include unit tests for new functionality - [X] Code passes GitHub workflow checks in your branch - [X] If you have multiple commits please combine them into one commit by squashing them. - [X] Read and understood the [contribution guidelines](https://github.com/openfoodfacts/openfoodfacts-server/blob/main/CONTRIBUTING.md) --> ### What This pull request addresses errors encountered during the conversion to TypeScript client for the `api.yml` file and its dependencies using [@openapitools/[email protected]](https://openapi-generator.tech/docs/generators/typescript-fetch) ([GH](https://github.com/OpenAPITools/openapi-generator/tree/master?tab=readme-ov-file#2---getting-started)). The changes include: - Fixes for conversion errors - Updates to dependencies - Improvements to the structure of the generated code ### Screenshot ![image](https://github.com/user-attachments/assets/e7ee8538-4545-4a31-aed5-740a4e88c936) ### Related issue(s) and discussion - Fixes #[9419](#9419) ### Additional Notes - More info: [https://openapi-generator.tech/docs/customization/#inline-schema-naming](https://openapi-generator.tech/docs/customization/#inline-schema-naming) - Please review the changes and provide feedback. If there are any additional modifications needed, let me know. Thank you for your cooperation!
- Loading branch information
Showing
10 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
type: object | ||
title: image_size | ||
properties: | ||
h: | ||
type: integer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ properties: | |
type: array | ||
items: | ||
type: object | ||
title: table_column | ||
properties: | ||
type: | ||
type: string | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
title: product_extended | ||
type: object | ||
properties: | ||
additives_original_tags: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
type: object | ||
title: product_misc | ||
description: | | ||
Miscellaneous but important fields of a product | ||
properties: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
type: object | ||
title: product_nutrition | ||
description: | | ||
Nutrition fields of a product | ||
|