Skip to content
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

fix: validate input schema using json schema validator #44

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

mhmd-azeez
Copy link
Contributor

@mhmd-azeez mhmd-azeez commented Jan 20, 2025

@mhmd-azeez mhmd-azeez force-pushed the validate-input-schema branch from 77dc6dc to 281657b Compare January 21, 2025 08:46
@mhmd-azeez
Copy link
Contributor Author

not sure why the obsidian plugin is failing to build

@G4Vi
Copy link
Contributor

G4Vi commented Jan 21, 2025

not sure why the obsidian plugin is failing to build

There was a breaking change to the python-pdk. I will fix today.

Comment on lines 95 to 111
"type": "object",
"oneOf": []interface{}{
map[string]interface{}{
"required": []string{"audio_path"},
"not": map[string]interface{}{
"required": []string{"audio_base64"},
},
},
map[string]interface{}{
"required": []string{"audio_base64"},
"not": map[string]interface{}{
"required": []string{"audio_path"},
},
},
},
"properties": map[string]interface{}{
"audio_path": map[string]interface{}{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The simulation can now handle complicated schemas like this too, @nilslice we just need to make sure the API/frontend can also handle it (when displaying it back on the website)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome! i will try to use some of this code to help inform that update.

@mhmd-azeez mhmd-azeez force-pushed the validate-input-schema branch from e533b55 to d565095 Compare January 22, 2025 16:06
@mhmd-azeez mhmd-azeez force-pushed the validate-input-schema branch from 1688b98 to b8bbb37 Compare January 26, 2025 18:19
@mhmd-azeez
Copy link
Contributor Author

@nilslice @bhelx all servlets now pass the validation test. Please take a look and see if the validation rules are too restrictive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants