-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Adds json schema validation to goose recipe validate cli #3234
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
Adds json schema validation to goose recipe validate cli #3234
Conversation
| recipe_file_path.canonicalize().unwrap_or(recipe_file_path); | ||
| let additional_sub_recipe = SubRecipe { | ||
| path: recipe_file_path.to_string_lossy().to_string(), | ||
| path: canonical_path.to_string_lossy().to_string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The recipe_file_path returned by extract_recipe_name already has been canonicalized. Not sure why you would like to do it here again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird the tests were failing, will explore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah it was failing on main too when we have a symlink for our temp directory. The fix is to canoncalise all the test file paths.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the expected value was wrong
* main: feat(goose-cli): theme persistence & selection (#1693) chore(release): release version 1.0.32 (#3248) Add fuzzy file search functionality (#3240) update styling of user messages (#3247) Add support for escape key to dismiss settings menu (#3225) fix: Refactor string truncation logic into reusable utility function to avoid panic (#2818) (#2819) fix: Prevent modal from closing on text select. (#3127) fix: Add back lazy_static (#3243) chore: remove unused dependencies (#3049) feat: Add close button (X) to toast notifications (#3197) Adds json schema validation to goose recipe validate cli (#3234)
Signed-off-by: Adam Tarantino <[email protected]>
Signed-off-by: Soroosh <[email protected]>
Signed-off-by: Kyle Santiago <[email protected]>
response.json_schema was added in #3188 . This pr extends
goose recipe validatecli to also validate the json schema.