-
Notifications
You must be signed in to change notification settings - Fork 113
Fix #1185 - Add additionalProperties when type object has default value and no props #1193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
89 changes: 89 additions & 0 deletions
89
client/deployment/src/test/resources/openapi/issue-1185.json
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| { | ||
| "openapi": "3.1.0", | ||
| "info": { | ||
| "title": "Docling Serve – PictureDescriptionLocal", | ||
| "version": "0.13.0" | ||
| }, | ||
| "paths": { | ||
| "/v1alpha/convert/file": { | ||
| "post": { | ||
| "summary": "Process File with Local Picture Description", | ||
| "operationId": "processFileWithPictureDescriptionLocal", | ||
| "tags": ["Docling"], | ||
| "requestBody": { | ||
| "required": true, | ||
| "content": { | ||
| "multipart/form-data": { | ||
| "schema": { | ||
| "type": "object", | ||
| "properties": { | ||
| "files": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "format": "binary" | ||
| } | ||
| }, | ||
| "picture_description_local": { | ||
| "$ref": "#/components/schemas/PictureDescriptionLocal" | ||
| } | ||
| }, | ||
| "required": ["files", "picture_description_local"] | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "description": "Successful Response", | ||
| "content": { | ||
| "application/json": { | ||
| "schema": { | ||
| "type": "object" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "components": { | ||
| "schemas": { | ||
| "PictureDescriptionLocal": { | ||
| "type": "object", | ||
| "title": "PictureDescriptionLocal", | ||
| "description": "Options for running a local vision-language model in the picture description. Parameters refer to a model hosted on Hugging Face.", | ||
| "properties": { | ||
| "repo_id": { | ||
| "type": "string", | ||
| "title": "Repo Id", | ||
| "description": "Repository ID on the Hugging Face Hub." | ||
| }, | ||
| "prompt": { | ||
| "type": "string", | ||
| "title": "Prompt", | ||
| "description": "Prompt used when calling the vision-language model.", | ||
| "default": "Describe this image in a few sentences." | ||
| }, | ||
| "generation_config": { | ||
| "type": "object", | ||
| "title": "Generation Config", | ||
| "description": "Config from Transformers’ GenerationConfig (e.g. max_new_tokens, do_sample).", | ||
| "default": { | ||
| "max_new_tokens": 200, | ||
| "do_sample": false | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "do_sample": false, | ||
| "max_new_tokens": 200 | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "required": ["repo_id"] | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ endif::add-copy-button-to-config-props[] | |
|
|
||
| [.description] | ||
| -- | ||
| Path to the Moqu (relative to the project). | ||
| Path to the Moqu OpenAPI files, relative to the `src/main/resources` directory. | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mcruzdev when sending PRs to server/moqu make sure to run the whole build, from the top, locally. |
||
|
|
||
|
|
||
| ifdef::add-copy-button-to-env-var[] | ||
|
|
||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.